PDA

View Full Version : important, help!


NickRac
05-30-2003, 04:52 PM
I just had directadmin installed on my server, RH 7.3, but I have a question...it's actually about the FTP server you install, how do I add users for my server to the FTP server? Like I create a new username and password for access to the server via root, how do I add the same name, password and directory to the FTP server?

DirectAdmin Support
05-30-2003, 05:48 PM
Hi NickRac,

To manually add ftp users to the server, edit the /etc/proftpd.passwd file and add the user you want to the bottom of the list.

The format is the same the /etc/passwd file and you'll have to copy the encrypted password from /etc/shadow

username:encrpass:uid:gid:system:/home/username:/bin/false

where
username: unix username
encrpass: encrypted password from /etc/shadow file
uid/gid: user id and the group id of the user
system: leave this as system
/home/username: the path they'll be sent to when they ftp in
/bin/false: leave this as is


Thanks

John

loopforever
06-19-2003, 11:55 AM
Just to expand a little on what John said, to add a new FTP user manually:

/usr/sbin/useradd -d /home/username -s /bin/false username
passwd username

And then add the user to /etc/proftpd.passwd using the instructions John gave you.

:)