FTP Server con Linux e PROFTPD
groupadd as400
adduser -g as400 as400
passwd as400 (ho provato + volte ad impostarla con adduser ma non ha
funzionato, meglio usare passwd quindi)
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.
ServerName "AtreeFLOW FTP SERVER"
ServerType standalone
DefaultServer on
# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances 30
# Set the user and group under which the server will run.
User nobody
Group nogroup
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~
# I don't choose to use /etc/ftpusers file (set inside the users you
want to ban, not useful for me)
UseFtpUsers off
#VALID LOGINS
<Limit LOGIN>
AllowUser as400
DenyALL
</Limit>
# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory>
LINK:
http://ubuntuforums.org/showthread.php?t=79588
http://ubuntuforums.org/showthread.php?t=79588&page=11
http://www.proftpd.org/docs/configs/basic.conf
http://www.ahinc.com/linux101/users.htm#User's%20Password
http://www.proftpd.org/docs/configs/basic.conf
Commenti