Add linux user with restricted access

Posted by Dominik Str on Super User See other posts from Super User or by Dominik Str
Published on 2012-11-10T01:19:11Z Indexed on 2012/11/10 5:04 UTC
Read the original article Hit count: 570

Filed under:
|

I need to create a user on linux with access rights only to one folder.

Background:

I have installed git on my virtual server (Debian). I also created a user for the repository. There is a lot of private data on the server. But all folders have read-access for others, because it's needed for the applications which run on the server. So the git-user can see all the data.

I would like to restrict the git user only to the folder where the repository is installed. I also tried ACL, but it didn't work.

Is there a better way to do this?

Thanks in advance!

© Super User or respective owner

Related posts about git

Related posts about user