Add linux user with restricted access
- by Dominik Str
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!