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 inaccess
I would guess the ownership of the .git
directory are the problem.
You shouldn't use one source tree from different users - it's likely to lead to problems.
The git
executable is not the issue. It should be owned by root, and have 755 permissions. (-rwxr-xr-x
)
In other words you can use git from multiple accounts, but you shouldn't share a single working directory.