Jail user to home directory while still allowing permission to create and delete files/folders

Posted by Sevenupcan on Super User See other posts from Super User or by Sevenupcan
Published on 2012-03-28T13:31:19Z Indexed on 2012/03/28 17:34 UTC
Read the original article Hit count: 166

Filed under:
|
|

I'm trying to give a client SFTP access to the root directory of their site on my server (Ubuntu 10.10) so they can manager their website themselves.

While I have been successful in jailing a user to a directory and giving them SFTP access; they are only allowed to create and delete new files in sub directories (the directories they own). This means that I must give them access to the parent directory to the root of their site.

How can I limit them to the root of their site (for example public_html) while still allowing them the ability create and delete files. All the tutorials I have read suggest that the root must be the owner of the user's home directory, which prevents them from write access inside that directory.

I'm relatively new to managing my own server so any advice would be very grateful.

Many thanks.

© Super User or respective owner

Related posts about security

Related posts about apache