Score:0

Any security reason not to use `root` user for git remote operations?

mx flag

I've got some configs (docker-compose related files) which I like to store them via git on a private github repo.
The configs are owned by root.
Is there any reason to change the ownership of the files to do the git push and git pull and via another user other than root?

Score:6
ar flag

There's no reason to use git as root. There is no functionality in git that requires superuser privileges.

You should only use superuser privileges when required. Even though the risk of a vulnerability that may be exploitable in this scenario is low, there's no gains by taking this risk, and habits is good defence.

Only run things as root when you need to.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.