Cannot pull or push to Git repository as normal user
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hm... That sounds odd. Can you use curl to grab e.g. google.com ? I never have to run makepkg as root (as it's generally a bad idea), so it may well be a deeper problem (i.e. not git)...
What about visiting google.com in your browser? Do you have a proxy set up that curl doesn't know about, or a firewall that could be blocking the connection? And what about
it works for root
it dose not work for user
this is a permissions problem
common problem on low level distros
(you do the configuration by hand distros)
like arch gentoo and slackware
check the permissions on git make sure it is set for execute by others
is your user a member of group netdev?
don't know how git works but if it sends commands to your NIC user needs to be a member of group netdev
or run it from su
it is considered by some blasphemy but go ahead and run it as root
be warned you can destroy your system as root
check the permissions on git make sure it is set for execute by others
is your user a member of group netdev?
We have already established that the problem is wider than git: curl seems to be affected, causing the git errors. However, your comment on permissions would be a good one, except for the fact that curl is obviously running: curl itself produces an error, not the shell saying "permission denied"
Quote:
or run it from su
it is considered by some blasphemy but go ahead and run it as root
be warned you can destroy your system as root
Yep, blasphemy. For the reason you stated, pretty much! And if your default solution is "Run it as root" you neither understand why the problem is occurring, nor learn anything about Linux, nor make your system any securer.
Aha! Tor is, in fact, a proxy server that runs on your local machine. So yes, there's your problem. Root isn't configured to use tor, but you are. So either you'll have to start tor, or change the config so curl doesn't use tor, or do something clever so that it only connects to tor if tor is running...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.