Nejdříve instalace balíčku
wufi:~#
apt-get install proftpd Reading Package Lists... Done Building Dependency Tree... Done The following extra packages will be installed: proftpd-common The following NEW packages will be installed: proftpd proftpd-common 0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 250kB of archives. After unpacking 721kB will be used. Do you want to continue? [Y/n]Y
ProFTPd configuration
You did not install any debconf-enabled versions of the proftpd yet.
This means that I shall ask you some questions about the way to start
proftpd and anonymous access.
However, since you had proftpd installed before, I need to know if it
is ok for me to edit to actually make those changes. Only answer yes
if you did not change much. You will have a chance to review the
changes later on.
If you answer `no' here, I will not ask questions that may require me
to edit the file.
Edit configuration file ? Yes
qqqqqqqqqqqqqqqqqqqqqqqqu ProFTPd configuration tqqqqqqqqqqqqqqqqqqqqqqqqqk
x ProFTPd can be run either as a service from inetd, or as a standalone x
x server. Eeach choice has its own benefits. If you have only a few ftp x
x connections per day, it may not be worth the resources to keep proftpd x
x running at all times. x
x x
x On the other hand, if your ftp site is visited frequently, inetd is not x
x a good choice, because each time a connection is opened, a new process x
x is spawned. x
x x
x Run proftpd from inetd or standalone? x
x x
x standalone x
x inetd
inetd
qqqqqqqqqqqqqqqqqqqqqqqu ProFTPd configuration tqqqqqqqqqqqqqqqqqqqqqqqqk
x x
x Enabling anonymous access grants access to your ftp site by any user, x
x without being a system user. This is probably not a good idea for x
x paranoid sysadmins. Only enable if you know what it does. x
x x
x Enable anonymous access? x
x x
x <Yes> <No> x
x x
mqqqqq
No
lqqqqqqqqqqqqqqqqqqqqqqqu ProFTPd configuration tqqqqqqqqqqqqqqqqqqqqqqqqk
x x
x I have made some changes to /etc/proftpd.conf; they are now in x
x /etc/proftpd.conf.proftpd-new. I saved the old version to x
x /etc/proftpd.conf.proftpd-old. Do you want me to replace the current x
x configuration with my changes now, or do you want to review x
x /etc/proftpd.conf.proftpd-new and merge the changes yourself? x
x x
x Shall I modify the /etc/proftpd.conf automatically? x
x x
x Do you want /etc/proftpd.conf to be updated? x
x x
x <Yes> <No> x
x x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
Yes
Konfigurační soubor pak upravím na:
ServerName "Wufi.Giga-Net.CZ ServerType inetd DeferWelcome off ShowSymLinks on MultilineRFC2228 on DefaultServer on ShowSymlinks on AllowOverwrite on TimeoutNoTransfer 600 TimeoutStalled 600 TimeoutIdle 1200 DisplayLogin welcome.msg DisplayFirstChdir .message LsDefaultOptions "-l" DenyFilter \*.*/ Port 21 MaxInstances 5 IdentLookups on SyslogLevel debug AuthUserFile /etc/ftpd.passwd
Vytvořím účet pro užtivatele
wufi:~#
ftpasswd --passwd --name=dusan --uid=33 --gid=33 \
--home=/var/www --shell=/bin/false --file=/etc/ftpd.passwd