locking an SFTP user into only one directory.

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: keith smith
Date:  
To: Main PLUG discussion list
Subject: locking an SFTP user into only one directory.


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---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss