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
<Global>
RequireValidShell off
</Global>
DefaultRoot ~ ftpuser
<Limit LOGIN>
DenyGroup !ftpuser
</Limit>
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
<Anonymous ~ftp>
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
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
# # Uncomment this if you're brave.
# # <Directory incoming>
# # # Umask 022 is a good standard umask to prevent new files and dirs
# # # (second parm) from being group and world writable.
# # Umask 022 022
# # <Limit READ WRITE>
# # DenyAll
# # </Limit>
# # <Limit STOR>
# # AllowAll
# # </Limit>
# # </Directory>
</Anonymous>
Reload & Start ProFTPd
/etc/init.d/proftpd reload /etc/init.d/proftpd start