adding passwod to ftpuser as one single command

If you want to add a ftp user the usual command is

pure-pw useradd nokia -f /usr/local/pureftpd/etc/pureftpd.passwd -u
nokia -d /home/website/nokia.com -m

it will prompt you to type and retype your password . Now if we want
to add the password on the same command line we can add

(echo name123; echo name123) | /usr/local/pureftpd/bin/pure-pw
passwd passsword -f /usr/local/pureftpd/etc/pureftpd.passwd -m

the -m creates a db file

--

No comments:

Other Articles

Enter your email address: