pirmdiena, 2011. gada 17. janvāris

Slackware vsftpd FTP with local users

Edit /etc/inetd.conf, uncomment:
# ftp stream tcp nowait root /usr/sbin/tcpd vsftpd

Edit /etc/vsftpd.conf:
local_enable=YES
write_enable=YES



Chroot users in specific directory

Enable or add these lines in /etc/vsftpd.conf:
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
chroot_local_user=YES


Create /etc/vsftpd.chroot_list, add line:
username /path/to/chrooted/dir/

Change home directory to same as chroot:
> usermod -d /path/to/chrooted/dir/ username



Limit user access to FTP only
In /etc/passwd change user shell to /bin/false
add /bin/false to /etc/shells

Nav komentāru:

Ierakstīt komentāru