unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#34494: proot-based non-root setup: refusing to run with elevated privileges (UID 0)
@ 2019-02-15 20:39 Florian Thevissen
  2019-02-16  6:34 ` Pjotr Prins
  2019-03-04 21:45 ` Ludovic Courtès
  0 siblings, 2 replies; 7+ messages in thread
From: Florian Thevissen @ 2019-02-15 20:39 UTC (permalink / raw)
  To: bug-Guix

[-- Attachment #1: Type: text/plain, Size: 1228 bytes --]

Hi,

I am trying to get guix to run on a system where I do not have root 
access, following a guide by pjotrp involving proot, here: 
https://github.com/pjotrp/guix-notes/blob/master/GUIX-NO-ROOT.org .

All guix operations that involve the script perform-download fail with 
the error:

    guix perform-download: error: refusing to run with elevated
    privileges (UID 0)

I am not sure if this hints at a bug in guix itself, but a comment in 
the guix sources lets me assume so. It says in package-management.scm:355

    “Note that scripts like ‘guix perform-download’ do not run as root (…)”

In my setup, following this guide, however, it apparently is run as 
root, and (assert-low-privileges) in the script perform-download.scm:89 
acts accordingly by signalling the error and exiting.

(By the way - running guix-daemon with proot root privileges fails (-0), 
and running it without (no -0) fails also.)

Now my question: why is perform-download run as root following pjotrs 
guide, and is there anything that can be done about it?

I am a bit at a loss here, being unfamiliar with the guix sources and 
overall system setup.

Looking forward to help, thanks,

Florian

​

[-- Attachment #2: Type: text/html, Size: 4679 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-03-06 16:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-15 20:39 bug#34494: proot-based non-root setup: refusing to run with elevated privileges (UID 0) Florian Thevissen
2019-02-16  6:34 ` Pjotr Prins
2019-02-16  9:04   ` Florian Thevissen
     [not found]     ` <20190216091747.eb6g7znptifbqqbt@thebird.nl>
2019-02-16 10:07       ` Florian Thevissen
2019-03-04 21:45 ` Ludovic Courtès
2019-03-05 18:57   ` Florian Thevissen
2019-03-06 16:00     ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).