How to hide folder in SFTP for a user

1

Well I create a new user on my host to access the devs, by entering putty with the created account only have access to their folder.

However, when entering SFTP, the host user's folders can be accessed as I can hide the root folders in SFTP?

    
asked by anonymous 23.07.2018 / 00:11

1 answer

0

I do not know if this helps, but it is possible to limit the user to only your home as below;

  

Linux FTP Documentation

There are options within /etc/vsftpd.conf to make FTP more secure. to limit users to only being within the home directory, comment the line below:

chroot_local_user=YES

You can also limit by a list as below:

chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list

create the file such as /etc/vsftpd.chroot_list, put one username per line, then restart sftp

sudo /etc/init.d/vsftpd restart
    
01.08.2018 / 12:17