Nastavenie servra
~$ apt-get install pure-ftpd-common pure-ftpd
~$ groupadd ftpgroup
~$ useradd -g ftpgroup -d /dev/null -s /etc ftpuser
~$ pure-pw useradd nawebe -u ftpuser -g ftpgroup -d /var/www
# commitnúť zmeny
~$ pure-pw mkdb
~$ echo no > /etc/pure-ftpd/conf/PAMAuthentication
~$ echo no > /etc/pure-ftpd/conf/UnixAuthentication
Spustenie servera
~$ /usr/sbin/pure-ftpd -j -E -B -f none -c 20 -C 3 -I 5 -l puredb:/etc/pure-ftpd/pureftpd.pdb
Vysvetlivky
-j //automatically create home directory
-E //only allow authenticated users
-B //start in background (daemonization)
-f none //facility for syslog logging, none :disabled
-c 20 //maximum of clients to be connected
-C 2 //number of simultanous connections
-I 5 //maximum idle time
-l puredb: //rule to the authentication metod
README
Čo ak mi tam niečo už beží?
Unable to start a standalone server: Address already in use
~$ netstat -ap | grep "*:ftp"
tcp 0 0 *:ftp *:* LISTEN 1302/inetd
~$ kill PID
Správa userov
~$ pure-pw list
~$ pure-pw show nawebe
Kto je pripojený?
~$ pure-ftpwho
Zmeniť heslo
~$ pure-pw passwd test
Zmazať usera
~$ pure-pw userdel test
README.Virtual-Users