Linux VSFTPD : Jail a "Specific SFTP User" to its home?

2.5k views Asked by At

I'm using both Redhat and CentOS. I previously wanted to jail a "Specific User" to its home. Then i got it by following this answer.

When the user (lets say, using FileZilla) use:

  • Protocol: FTP

.. it is fine!

But again there, when the user connects with:

  • Protocol: SFTP (in the FileZilla setting)

.. the Jailing for that Specific User is NOT working anymore. Can still browse through.

How can i make it to have:

  • In vsFTPd, jail a Specific User to its home when using Protocol: SFTP.

Thank you!

1

There are 1 answers

2
linux_fanatic On

Hi yes sftp works with ssh configuration on port 22, http:/thegeekstuff.com/2012/03/chroot-sftp-setup would make you jailroot the users. You have to modify ssh configuration file to jail root the users.

Thanks & Regards,
Alok