Permission denied to run git in mounted directories [duplicate]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite













This question already has an answer here:



  • Change owner of internal hard drive partition from root to user

    4 answers



So I freshly installed Ubuntu 18.04 alongside Windows 10. At installation I mounted C: and D: at home/drives/C - home/drives/D. I want to keep my working files in D therefore I am using git there, but every time I try running git status, git clone etc, the terminal wants me to use sudo.



Did I mount the volumes correctly? How can I get rid of the mounted volumes permissions?







share|improve this question














marked as duplicate by muru, Byte Commander, karel, Eric Carvalho, Fabby Apr 27 at 20:42


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • As its NTFS, it's probably showing root as the owner of those files. See dupe on how to make your user appear as the owner, after which you don't need to use sudo.
    – muru
    Apr 27 at 8:56










  • That dupe helped me. Thank you!
    – Huntix
    Apr 27 at 9:12














up vote
0
down vote

favorite













This question already has an answer here:



  • Change owner of internal hard drive partition from root to user

    4 answers



So I freshly installed Ubuntu 18.04 alongside Windows 10. At installation I mounted C: and D: at home/drives/C - home/drives/D. I want to keep my working files in D therefore I am using git there, but every time I try running git status, git clone etc, the terminal wants me to use sudo.



Did I mount the volumes correctly? How can I get rid of the mounted volumes permissions?







share|improve this question














marked as duplicate by muru, Byte Commander, karel, Eric Carvalho, Fabby Apr 27 at 20:42


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • As its NTFS, it's probably showing root as the owner of those files. See dupe on how to make your user appear as the owner, after which you don't need to use sudo.
    – muru
    Apr 27 at 8:56










  • That dupe helped me. Thank you!
    – Huntix
    Apr 27 at 9:12












up vote
0
down vote

favorite









up vote
0
down vote

favorite












This question already has an answer here:



  • Change owner of internal hard drive partition from root to user

    4 answers



So I freshly installed Ubuntu 18.04 alongside Windows 10. At installation I mounted C: and D: at home/drives/C - home/drives/D. I want to keep my working files in D therefore I am using git there, but every time I try running git status, git clone etc, the terminal wants me to use sudo.



Did I mount the volumes correctly? How can I get rid of the mounted volumes permissions?







share|improve this question















This question already has an answer here:



  • Change owner of internal hard drive partition from root to user

    4 answers



So I freshly installed Ubuntu 18.04 alongside Windows 10. At installation I mounted C: and D: at home/drives/C - home/drives/D. I want to keep my working files in D therefore I am using git there, but every time I try running git status, git clone etc, the terminal wants me to use sudo.



Did I mount the volumes correctly? How can I get rid of the mounted volumes permissions?





This question already has an answer here:



  • Change owner of internal hard drive partition from root to user

    4 answers









share|improve this question













share|improve this question




share|improve this question








edited Apr 27 at 11:52









Zanna

47.9k13119227




47.9k13119227










asked Apr 27 at 8:41









Huntix

84




84




marked as duplicate by muru, Byte Commander, karel, Eric Carvalho, Fabby Apr 27 at 20:42


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by muru, Byte Commander, karel, Eric Carvalho, Fabby Apr 27 at 20:42


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.













  • As its NTFS, it's probably showing root as the owner of those files. See dupe on how to make your user appear as the owner, after which you don't need to use sudo.
    – muru
    Apr 27 at 8:56










  • That dupe helped me. Thank you!
    – Huntix
    Apr 27 at 9:12
















  • As its NTFS, it's probably showing root as the owner of those files. See dupe on how to make your user appear as the owner, after which you don't need to use sudo.
    – muru
    Apr 27 at 8:56










  • That dupe helped me. Thank you!
    – Huntix
    Apr 27 at 9:12















As its NTFS, it's probably showing root as the owner of those files. See dupe on how to make your user appear as the owner, after which you don't need to use sudo.
– muru
Apr 27 at 8:56




As its NTFS, it's probably showing root as the owner of those files. See dupe on how to make your user appear as the owner, after which you don't need to use sudo.
– muru
Apr 27 at 8:56












That dupe helped me. Thank you!
– Huntix
Apr 27 at 9:12




That dupe helped me. Thank you!
– Huntix
Apr 27 at 9:12










1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










Try to run as root



You can use this command to run the entire terminal as root



sudo -i


or



sudo su


Enter your password and you can do all commands as root






share|improve this answer






















  • Thank you :) I am sorry for the easy question but I am fairly new to the OS. Have a nice day.
    – Huntix
    Apr 27 at 9:12










  • no problem. have a nice day :)
    – Musthu
    Apr 28 at 11:02

















1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote



accepted










Try to run as root



You can use this command to run the entire terminal as root



sudo -i


or



sudo su


Enter your password and you can do all commands as root






share|improve this answer






















  • Thank you :) I am sorry for the easy question but I am fairly new to the OS. Have a nice day.
    – Huntix
    Apr 27 at 9:12










  • no problem. have a nice day :)
    – Musthu
    Apr 28 at 11:02














up vote
0
down vote



accepted










Try to run as root



You can use this command to run the entire terminal as root



sudo -i


or



sudo su


Enter your password and you can do all commands as root






share|improve this answer






















  • Thank you :) I am sorry for the easy question but I am fairly new to the OS. Have a nice day.
    – Huntix
    Apr 27 at 9:12










  • no problem. have a nice day :)
    – Musthu
    Apr 28 at 11:02












up vote
0
down vote



accepted







up vote
0
down vote



accepted






Try to run as root



You can use this command to run the entire terminal as root



sudo -i


or



sudo su


Enter your password and you can do all commands as root






share|improve this answer














Try to run as root



You can use this command to run the entire terminal as root



sudo -i


or



sudo su


Enter your password and you can do all commands as root







share|improve this answer














share|improve this answer



share|improve this answer








edited Apr 27 at 8:58









muru

1




1










answered Apr 27 at 8:49









Musthu

609




609











  • Thank you :) I am sorry for the easy question but I am fairly new to the OS. Have a nice day.
    – Huntix
    Apr 27 at 9:12










  • no problem. have a nice day :)
    – Musthu
    Apr 28 at 11:02
















  • Thank you :) I am sorry for the easy question but I am fairly new to the OS. Have a nice day.
    – Huntix
    Apr 27 at 9:12










  • no problem. have a nice day :)
    – Musthu
    Apr 28 at 11:02















Thank you :) I am sorry for the easy question but I am fairly new to the OS. Have a nice day.
– Huntix
Apr 27 at 9:12




Thank you :) I am sorry for the easy question but I am fairly new to the OS. Have a nice day.
– Huntix
Apr 27 at 9:12












no problem. have a nice day :)
– Musthu
Apr 28 at 11:02




no problem. have a nice day :)
– Musthu
Apr 28 at 11:02


Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491