Oto ustawienia protpd.conf:
Kod: Zaznacz cały
ServerName "XXXX"
ServerAdmin [email][email protected][/email]
ServerType standalone
Bind 153.19.0.0
DeferWelcome on
DefaultServer on
RequireValidShell on
ServerIdent on "XXXXXXX"
AccessGrantMsg "Witaj urzytkowniku %u :]"
AccessDenyMsg "Login incorrect :P"
Port 21
Umask 022
MaxInstances 15
MaxLoginAttempts 3
MaxClients 7 "XXXXXXXXXXXXXX"
MaxClientsPerHost 7 "XXXXXXXXXXXXXXXXXX"
MaxClientsPerUser 1 "XXXXXXXXXXXXXXXXXX"
TimeoutIdle 60
TimeoutLogin 20
TimeoutNoTransfer 180
TimeoutSession 3600 users !agresor,!firedoll
User vftp
Group vftp
SystemLog /var/log/proftpd
TransferLog /var/log/xferlog
ExtendedLog /var/log/ftpsnif
ExtendedLog /dev/tty7
PidFile /var/run/proftpd.pid
ScoreboardFile /var/run/proftpd.scoreboard
DefaultChdir ~
DefaultRoot ~
RootLogin off
DefaultTransferMode binary
DeleteAbortedStores on
Kod: Zaznacz cały
addgroup –system –gid 160 vftp
useradd -r -u 160 -s /bin/false -d /home/ftp -c “Pure-ftpd User” -g vftp vftp
pure-pw useradd xxx -u vftp -t 120 -d /home/ftp/xxx
Czy ustawienia:
Kod: Zaznacz cały
MaxClients 7 "XXXXXXXXXXXXXX"
MaxClientsPerHost 7 "XXXXXXXXXXXXXXXXXX"
MaxClientsPerUser 1 "XXXXXXXXXXXXXXXXXX"
Kod: Zaznacz cały
pure-pw useradd xxx -u vftp -t 120 -d /home/ftp/xxx