RSS

Tag Archive | "ftp"

Setting up a FTP Server on debian

Tuesday, July 14, 2009

0 Comments

Install vsftpd apt-get install vsftpd Edit the file /etc/vsftpd.conf and make the following changes: Change Yes to No in the following line Anonymous_enable = YES Uncomment the following lines by removing the # #local_enable = YES #write_enable = YES #local_umask = 022 #chroot_local_user = YES Finally restart the vsftpd /etc/init.d/vsftpd You and any of your users should now be able to FTP the server

Continue reading...

Chroot Sftp

Sunday, May 3, 2009

0 Comments

Create a Chrooted group addgroup chrooted Open up /etc/ssh/sshd_config and add the following to the end of it Subsystem sftp internal-sftp Match group chrooted ChrootDirectory /home/%u X11Forwarding no ForceCommand internal-sftp Restart SSHD /etc/init.d/ssh restart Then make users chrooted by adding them to the chrooted group adduser user chrooted Now when the user sftps the server they will only see the contents of there home folder

Continue reading...