I have 2 users in question
• git user - used for gitosis - so it's a No password user and it can be accessed only through root...
• user user - where my files reside
so what I would like to do is give the user git rights to navigate to a luddico folder like this
git@domain.me:~/respositories# cd /home/user/websites/domain.com
and then perform any action inside the user user files (any file/folder) so this way I can for example
git@domain.com:/home/user/websites/domain.com# git pull
because actually the action metioned above, returns:
error: cannot open .git/FETCH_HEAD: Permission denied
so when I ask for actions like this, it requests git's password which btw doesn't have any, or cancel it straight away
so How could I configure the user git to have like root/admin rights over the user user without need to provide any password or sudo before the commands? just like if it was root
- It would be even nicer if there is a way to just allow specific commands from git to user
Thanks in advance