How can you use Git without Sudo in multiple accounts in one Ubuntu?
My Ubuntu has many accounts.
The creation of new accounts has made Git inaccessible by me without sudo.
I changed the owner to be me, masi, and the group to be admin
where the masi belongs to.
I have the following permissions for Git
800 -rwxrwxrwx 1 masi admin 813744 2009-02-20 23:01 /usr/bin/git
I get the following message in trying to use Git
git status
fatal: unable to create '.git/index.lock': Permission denied
I run find . -iregex ".*index.l.*
which returns no matches so there seems to be no index.lock in locking the system. I run the same command also with sudo unsuccessfully.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…