====== install FTP under Debian ======
install needing package proftpd
aptitude install proftpd
if package not found, update packagelist
aptitude update
edit /etc/proftpd/proftpd.conf
- No need IPv6
- No require Shell
- DefauftRoot = UserRoot
- Login only for users of the group
UseIPv6 off
RequireValidShell off
DefaultRoot ~ ftpuser
DenyGroup !ftpuser
Restart ProFTPd
/etc/init.d/proftpd restart
- Add Group
- Add User
- link User to Group
addgroup ftpusers
adduser ftpuser -shell /bin/false -home /var/www
adduser ftpuser ftpusers
User ftp
Group nogroup
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
# Cosmetic changes, all files belongs to ftp user
DirFakeUser on ftp
DirFakeGroup on ftp
RequireValidShell off
# Limit the maximum number of anonymous logins
MaxClients 10
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
DisplayFirstChdir .message
# Limit WRITE everywhere in the anonymous chroot
DenyAll
# # Uncomment this if you're brave.
# #
# # # Umask 022 is a good standard umask to prevent new files and dirs
# # # (second parm) from being group and world writable.
# # Umask 022 022
# #
# # DenyAll
# #
# #
# # AllowAll
# #
# #
Reload & Start ProFTPd
/etc/init.d/proftpd reload
/etc/init.d/proftpd start