locking an SFTP user into only one directory.
keith smith
klsmith2020 at yahoo.com
Wed Apr 30 15:54:52 MST 2014
Hi I'm using CentOS 6.5 and we use the users home dir + "public_html" as the docroot for our websites like this:
/home/user_name/public_html
We are using SSH for SFTP. Each host has only one SFTP user.
What I need to do is add a directory, lets call it uploads like this:
/home/user_name/public_html/uploads
Any content in uploads must be accessible to Apache so it can be displayed.
And I would like to add a user that can only access
/home/user_name/public_html/uploads and would be able to add/edit/remove any files in just the uploads directory.
I thought of a link, however that did not work. I created a user uploads which created a home dir /home/uploads and I tried to link that to /home/user_name/public_html/ which created
/home/user_name/public_html/uploads . This did not work.
I hope this makes sense.
Any suggestions?
Thanks in advance!!
Keith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20140430/d757a477/attachment.html>
More information about the PLUG-discuss
mailing list