- Edit or add following to proftpd.conf
AuthOrder mod_auth_file.c
AuthUserFile /etc/proftpd/ftpd.passwd
AuthGroupFile /etc/proftpd/ftpd.group
RequireValidShell off -
Get uid and gid
cat /etc/passwd | grep <username>
cat /etc/group | grep <groupname> -
Add users to ftpd.passwd
ftpasswd --uid <uid> --gid <gid> --gecos "Full Name" --name <username> --shell /bin/false --home <path> --passwd -
Add Groups to ftpd.group
ftpasswd --gid <gid> --name <groupname> --group
- Add members to a group
ftpasswd --gid <gid> --name <groupname> --member <membername> --group -
Set permissions on the ftpd.passwd and ftpd.group files
chmod 400 /etc/proftpd/ftpd.passwd /etc/proftpd/ftpd.group
chown proftpd.nogroup /etc/proftpd/ftpd.passwd /etc/proftpd/ftpd.group -
Restart ProFTPD
/etc/init.d/proftpd restart
ProFTPD Virtual User Setup with AuthUserFile
Sep 10, 2009
ProFTPD Virtual User Setup with AuthUserFile
2009-09-10T08:32:00-07:00
cb
ftp|Ubuntu|