unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: pkill9 <pkill9@runbox.com>
To: "guix-devel@gnu.org" <guix-devel@gnu.org>
Subject: Verify validity of sudoers file when reconfiguring system.
Date: Sun, 2 Aug 2020 13:11:15 +0100	[thread overview]
Message-ID: <20200802131115.720bdf36@runbox.com> (raw)

Last time I tested, the sudoers file could be changed to anything in
the guix system configuration, whether it's valid or not. This could
result in someone being locked out of their system when root doesn't
have a password, and they rely on sudo. Ideally, `guix system
reconfigure` would fail if the specified sudoers file is invalid.

I ran `visudo --help` and there are two flags that could be used for
this: --check, which simply parses the sudoers file and checks that
it's valid, and --file, which specifies which file to check.


             reply	other threads:[~2020-08-02 12:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-02 12:11 pkill9 [this message]
2020-08-24 21:29 ` Verify validity of sudoers file when reconfiguring system 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=20200802131115.720bdf36@runbox.com \
    --to=pkill9@runbox.com \
    --cc=guix-devel@gnu.org \
    /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).