important, help!

NickRac

Verified User
Joined
May 24, 2003
Messages
22
Location
Connecticut
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?
 
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
 
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.

:)
 
Back
Top