2

Whenever I use git to clone stuff or use ssh-keygen I have to use sudo for some reason. I mainly used Git Bash for doing such things on Windows and you don't have to use sudo to do such actions. Is this a normal thing with Linux or is it my distro? I use Manjaro Linux.

New contributor
apap04 is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

put on hold as too broad by Ramhound, K7AAY, suspectus, Sirex, John1024 2 days ago

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 9
    No, that's not normal. Are you trying to write to a directory for which your user doesn't have permission? If you want to get a useful answer here, you need to provide details including a full and complete version of any error message that you see. – John1024 Oct 9 at 20:59
  • @John1024 Yeah, I'm trying to write to some other directories. The directory I try to use these commands on (mainly git) are my external drives (``run/media/Misc). But in my home directory I still have to use sudo` to install something using pip. I get a permission denied error. The error: error: could not create '/usr/lib/python3.7/site-packages/test.py': Permission denied – apap04 Oct 9 at 22:11
  • 1
    FYI, /usr/lib/python3.7 is not in your home directory and a normal user does not have permission to write to that directory. Please edit your question (rather than comments where the formatting is awful) and include full details on the command you are running and all associated error messages. – John1024 Oct 9 at 22:43
  • And in particular, you shouldn't mess with /usr/lib, because this will clash with your distro's package system. If you want to install additional stuff manually, use the subhierarchy in /usr/local. – dirkt Oct 10 at 9:06
  • 1
    everything seems to be working fine now.. not sure what was going on there – apap04 2 days ago