SFTP File Restrictions.
Posted
by The Rook
on Server Fault
See other posts from Server Fault
or by The Rook
Published on 2010-02-13T20:22:16Z
Indexed on
2010/04/23
21:23 UTC
Read the original article
Hit count: 466
Is it possible to use SFTP on Linux and restrict a user account to ONE directory such that no other directory listing can be obtained? Yes, I must use SFTP, FTP is only used by people that love getting hacked.
For instance I want someone to modify files in /var/www/code/ but I don't want them to be able modify anything else. I don't even want them to see the contents /tmp/.
(I will accept a "quick and dirty" solution, as long as it is secure.)
© Server Fault or respective owner