unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Florian Thevissen <mail@florian-thevissen.de>
To: Pjotr Prins <pjotr2019@thebird.nl>
Cc: bug-Guix@gnu.org
Subject: bug#34494: proot-based non-root setup: refusing to run with elevated privileges (UID 0)
Date: Sat, 16 Feb 2019 11:07:42 +0100	[thread overview]
Message-ID: <e1babb24-bfb2-e591-1bc0-e00aade073d1@florian-thevissen.de> (raw)
In-Reply-To: <20190216091747.eb6g7znptifbqqbt@thebird.nl>

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

Thanks, Pjotr.

So I got it working on one system out of four, following the exact same 
steps each time:

  * Debian 9 (Stretch) - 4.9.130-2 x86_64 (real system) - *_fail_*
  * Ubuntu 17.10 (Artful Aardvark) - 4.13.0-46-lowlatency (real system)
          - _*fail*_
  * Ubuntu 14.04 (Trusty Tahr)  - 4.4.0-31-generic - _*fail*_
  * Debian 9 (Stretch) - 4.9.0-8-amd64 (VM)    - _*works*_

I don't know what the significant differentiating factor could be, that 
lets guix behave correctly on that one debian system but not on the others.

But what I also noticed, is that the "list of substitutes" is also not 
being updated on the three failing systems. Is the update process using 
the download script internally, maybe, and that silently fails? Or maybe 
this hints at another problem?

I fear there's nothing more I can immediately do. @Ludo - can you help?



On 16/02/19 10:17, Pjotr Prins wrote:
> Sorry about that.
>
> If you get it to work, do update the document - or me by E-mail. Maybe
> Ludo has something to say about this.
>
> Pj.
>
> On Sat, Feb 16, 2019 at 10:04:03AM +0100, Florian Thevissen wrote:
>>     Hi pjotr,
>>
>>       Did you try something like
>>
>>       proot -0 -b /proc -b /dev -b /etc -r . -b etc_guix/acl:/etc/guix/acl
>>       gnu/store/vir3l..-guix-0.x/bin/guix-daemon —disable-chroot
>>
>>     Yes, this doesn’t work - with or without the -0 flag.
>>
>>       That used to work. But maybe no longer?
>>
>>     I tried the new guix binaries (0.16.0), and the ones that were recent
>>     when you wrote the guide (0.13.0), and proot has not, if I see
>>     correctly, significantly changed since then (v.5.1.0).
>>
>>     To me, this looks as if the setup on my particular system had something
>>     special to it that would lead guix to not behave correctly. Here’s a
>>     #guix chat-log, where Saone (at 00:25:29) comes to the same conclusion:
>>     [1]https://gnunet.org/bot/log/guix/2017-09-21 .
>>     For the record - this happens on an Debian 4.9.130-2 x86_64 system.
>>     I'll try this out on other systems/VMs today...
>>
>>     On 16/02/19 07:34, Pjotr Prins wrote:
>>
>> Did you try something like
>>
>> proot -0 -b /proc -b /dev -b /etc -r . -b etc_guix/acl:/etc/guix/acl gnu/store/v
>> ir3l..-guix-0.x/bin/guix-daemon --disable-chroot
>>
>> (note the extra -0 and chroot switches) and you should see on a guix package ins
>> tall.
>>
>> That used to work. But maybe no longer?
>>
>> On Fri, Feb 15, 2019 at 09:39:21PM +0100, Florian Thevissen wrote:
>>
>>     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:
>>     [1][2]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
>>     ​
>>
>> References
>>
>>     1. [3]https://github.com/pjotrp/guix-notes/blob/master/GUIX-NO-ROOT.org
>>
>>     ​
>>
>> References
>>
>>     1. https://gnunet.org/bot/log/guix/2017-09-21
>>     2. https://github.com/pjotrp/guix-notes/blob/master/GUIX-NO-ROOT.org
>>     3. https://github.com/pjotrp/guix-notes/blob/master/GUIX-NO-ROOT.org


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

  parent reply	other threads:[~2019-02-16 10:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2019-03-04 21:45 ` Ludovic Courtès
2019-03-05 18:57   ` Florian Thevissen
2019-03-06 16:00     ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e1babb24-bfb2-e591-1bc0-e00aade073d1@florian-thevissen.de \
    --to=mail@florian-thevissen.de \
    --cc=bug-Guix@gnu.org \
    --cc=pjotr2019@thebird.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).