From: ludo@gnu.org (Ludovic Courtès)
To: rohit yadav <rohityadav@utexas.edu>
Cc: help-guix@gnu.org
Subject: Re: How to install guix without root permission
Date: Sat, 07 Jan 2017 22:06:53 +0100 [thread overview]
Message-ID: <877f661swi.fsf@gnu.org> (raw)
In-Reply-To: <CAGKZdmYYyqgfXEEKQ2W3edn-TPEWTKPjqoiUeAdaCwQJ1MpDng@mail.gmail.com> (rohit yadav's message of "Fri, 6 Jan 2017 17:26:11 -0600")
rohit yadav <rohityadav@utexas.edu> skribis:
>
> On Fri, Jan 6, 2017 at 9:18 AM, Ludovic Courtès <ludo@gnu.org> wrote:
>
> rohit yadav <rohityadav@utexas.edu> skribis:
>
> > Thanks for the reply. The proot (https://proot-me.github.io/) project
> > allows you to map $HOME/gnu/store to /gnu/store etc. However, where I am
> > struggling is the guixbuild users and group creation, and running guix
> > daemon.
>
> Yes, though PRoot relies on syscall interception using ptrace(2), which
> is inefficient (which may or may not be a problem, depending on the
> application).
>
> I am not greatly familiar with the lower level details of linux kernel yet. How lot of these useful utilities work is not clear to me. I will probably work on it sometime (any references?). For now, the performance
> is not an issue. However, the main issue how to create guixbuild group and users?
As I wrote to Tobias, it’s probably OK to use --disable-chroot (which
alleviates the need for build users) and ask PRoot to restrict file
system access to /gnu/store.
Still not as good as what you get by running guix-daemon as root
(separate UIDs, access to specific /gnu/store items), but probably “good
enough” as a first approximation.
> > I am using kernel 4+, which supports namespaces.
>
> How should I check it?
Like this:
> Yes, but some distributions compile it out or turn it off by default.
> See
> <http://git.savannah.gnu.org/cgit/guix.git/tree/guix/scripts/environment.scm#n517>,
> for a way to check whether user namespaces are enabled.
HTH!
Ludo’.
prev parent reply other threads:[~2017-01-07 21:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-06 0:59 How to install guix without root permission rohit yadav
2017-01-06 13:49 ` Ludovic Courtès
2017-01-06 13:59 ` rohit yadav
2017-01-06 14:18 ` Tobias Geerinckx-Rice
2017-01-06 15:53 ` Ludovic Courtès
2017-01-06 15:18 ` Ludovic Courtès
2017-01-06 23:26 ` rohit yadav
2017-01-07 21:06 ` Ludovic Courtès [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877f661swi.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=help-guix@gnu.org \
--cc=rohityadav@utexas.edu \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.