To create the database. Create a text file, name it a.txt,
which has keys and values like this:
key_0
value_0
key_1
value_1
Run:
$ db_load -T -t hash -f a.txt a.db
To create the database. Create a text file, name it a.txt,
which has keys and values like this:
key_0
value_0
key_1
value_1
$ db_load -T -t hash -f a.txt a.db
Cannot open your terminal '/dev/pts/0' - please check.
script -c "screen -S main" /dev/null
# apt-get install libpam-pwdfile
# mkdir /etc/vsftpd
# cd /etc/vsftpd
# htpasswd -c passwd_ftp a_sample_website
# cd /etc/pam.d
# vi vsftpd
# Standard behaviour for ftpd(8).
auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
# Note: vsftpd handles anonymous logins on its own. Do not enable
# pam_ftp.so.
# Standard blurb.
#@include common-account
#@include common-session
#@include common-auth
#auth required pam_shells.so
# Customized login using htpasswd file
auth required pam_pwdfile.so pwdfile /etc/vsftpd/passwd_ftp
account required pam_permit.so
# vi /etc/vsftpd.conf
write_enable=YES
local_umask=022
chroot_local_user=YES
# addtitional settings by chaitat
virtual_use_local_privs=YES
connect_from_port_20=YES
guest_enable=YES
guest_username=ftp
user_sub_token=$USER
local_root=/vhdocs/$USER
hide_ids=YES
# /etc/init.d/vsftpd restart
# chown -R ftp.nogroup /vhdocs/a_sample_website
AuthUserFile /var/www/tmp/.htpasswd
AuthName "My Private Directory"
AuthType Basic
require valid-user
admin:$apr1$Y5J7envl$dYoDhqywTT.mD4L6MQIAU/
W: GPG error: http://download.virtualbox.org lenny Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 54422A4B98AB5139
# gpg --keyserver subkeys.pgp.net --recv 54422A4B98AB5139
# gpg --export --armor 54422A4B98AB5139 | apt-key add -
# ServerName is to be specified to avoid warning during reload
ServerName MYSERVER