Opened 12 years ago
Last modified 12 years ago
#35670 new defect
could not set effective gid to 0
Reported by: | dpawlows@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 2.1.2 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt) | |
Port: |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
I know that people are still trying to figure out all the issues with Xcode 4.3, but I had no choices but to move on to 4.4 as my hard drive died yesterday and was replaced. I can install macports, but um unable to install any ports due to what seems like a privileges issue. I.e.:
sudo port install gnuplot ... ---> Fetching archive for aquaterm Error: org.macports.archivefetch for port aquaterm returned: could not set effective gid to 0 Error: Failed to install aquaterm ...
Relevant lines from the log file:
:msg:archivefetch ---> Fetching archive for aquaterm :debug:archivefetch Executing org.macports.archivefetch (aquaterm) :debug:archivefetch Can't run archivefetch on this port without elevated privileges. Escalating privileges back to root. :error:archivefetch org.macports.archivefetch for port aquaterm returned: could not set effective gid to 0 :debug:archivefetch Error code: NONE :debug:archivefetch Backtrace: could not set effective gid to 0 while executing
So despite running it as root, I'm not running it as root?
Attachments (1)
Change History (8)
comment:1 Changed 12 years ago by dpawlows@…
Cc: | dpawlows@… added |
---|
comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added; dpawlows@… removed |
---|---|
Description: | modified (diff) |
Owner: | changed from macports-tickets@… to mojca.miklavec.lists@… |
Port: | gnuplot added |
Please remember to use WikiFormatting, to fill in the Port field, and to Cc the maintainer of that port. Cc'ing yourself is not needed when you are the reporter.
Yes, despite you running as root (or using "sudo
"), most of MacPorts does not run as root; it drops privileges to an unprivileged user (the "macports" user).
MacPorts works fine with the versions of Xcode listed on our install page, which includes 4.3 and 4.4.
Please "sudo port clean gnuplot", then try again, then attach the main.log file if it fails again, so that we can see everything that happened.
comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from mojca.miklavec.lists@… to mcalhoun@… |
---|---|
Port: | aquaterm added; gnuplot removed |
Eh, wrong port, aquaterm not gnuplot.
Changed 12 years ago by dpawlows@…
comment:4 Changed 12 years ago by dpawlows@…
Fair enough. The issue isn't with aquaterm, that will install. Port is having trouble installing dependencies or something. For example, I did a
sudo port install aquaterm
which worked. Then I tried installing gnuplot again and I got the same error, only for expat. So I installed expat sucessfully, tried gnuplot again, and this time it chokes when trying to install bzip2. I've attached the log from that attempt.
This issue pops up when I try and install any port with dependencies so far, such as emacs23, texlive, and ghostscript.
comment:5 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Component: | ports → base |
---|---|
Owner: | changed from mcalhoun@… to macports-tickets@… |
Port: | aquaterm removed |
Summary: | Port install with Xcode 4.4 doesn't work → could not set effective gid to 0 |
comment:7 Changed 12 years ago by dave@…
It’s probably not a wise idea, but setting
macportsuser root
in macports.conf works around the problem.
Another way to work around the problem seems to be to set macportsuser to a user with sudo privileges, create a group with the same name as that user and add the user to the group, and change ownership (recursively) of /opt/local/var/macports to that user.
Cc Me!