From: Maxime Devos <maximedevos@telenet.be>
To: Jorge Acereda <jacereda@gmail.com>, 45295@debbugs.gnu.org
Subject: bug#45295: Alternative
Date: Sun, 09 Jan 2022 21:17:49 +0100 [thread overview]
Message-ID: <cf26786af911b594627d07b0467164e7d6368ee1.camel@telenet.be> (raw)
In-Reply-To: <87r19gy980.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 802 bytes --]
Jorge Acereda schreef op zo 09-01-2022 om 20:55 [+0100]:
> Hi,
>
> New user here, so maybe I'm talking BS.
>
> I'm wondering if getting rid of sudo for reconfiguration is an option.
>
> What if instead of running all the process as root, it invoked sudo (or
> doas) in the final stage, so it can perform the bits that require
> permissions?
A problem here is that this assumes sudo, so "guix system reconfigure"
needs to guess whether to use "su", "sudo", "sudo -E", "doas", ...
Looking at guix/scripts/system.scm, it appears that
"guix system reconfigure" interacts with shepherd directly,
so "guix system reconfigure" needs to be run as root to work;
at least currently it cannot delegate this to a separate process
to be run under "sudo" or the like.
Greetings,
Maxime.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
next prev parent reply other threads:[~2022-01-09 20:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-17 14:01 bug#45295: “sudo guix system reconfigure” triggers re-clone/update of Git checkout Ludovic Courtès
2021-01-17 22:06 ` Ludovic Courtès
2022-01-09 19:55 ` bug#45295: Alternative Jorge Acereda
2022-01-09 20:17 ` Maxime Devos [this message]
2022-01-09 20:19 ` Maxime Devos
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=cf26786af911b594627d07b0467164e7d6368ee1.camel@telenet.be \
--to=maximedevos@telenet.be \
--cc=45295@debbugs.gnu.org \
--cc=jacereda@gmail.com \
/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).