Rāda ziņas ar etiķeti chroot. Rādīt visas ziņas
Rāda ziņas ar etiķeti chroot. Rādīt visas ziņas

otrdiena, 2012. gada 24. janvāris

Chrooted SFTP user with disabled shell access

Open /etc/sshd/sshd.conf and enable if disabled:
Subsystem sftp internal-sftp

Add following lines at the end:
Match group sftponly # or Match user someuser
ChrootDirectory /home/%u
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp

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