Gentoo Archives: gentoo-user

From: Jack <ostroffjh@×××××××××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Update to /etc/sudoers disables wheel users!!!
Date: Wed, 26 Oct 2022 18:36:07
Message-Id: VKR6EBL6.TS25B7MO.SF3Z7W3C@I2WWHQRH.WQFZ26HJ.OK6UXKFM
In Reply to: Re: [gentoo-user] Update to /etc/sudoers disables wheel users!!! by Ramon Fischer
1 On 2022.10.26 14:04, Ramon Fischer wrote:
2 > Also a very interesting question!
3 >
4 > I just tested this with "visudo" and it does not intercept this.
5 >
6 > If "su" is disabled, you are locked out and you are forced to enter
7 > your system via a live USB stick and a "chroot" in order to edit
8 > "/etc/shadow" to set a root password via "mkpasswd" and enable "su".
9 > Nice. :D
10 Could you not interrupt grup and append "single" or "init=/bin/bash"
11 to the kernel command line?
12 >
13 > -Ramon
14 >
15 > On 26/10/2022 18:52, Grant Taylor wrote:
16 >> What if someone were to put the following into
17 >> /etc/sudoers.d/zzzzzzzzzz
18 >>
19 >>    ALL ALL=(ALL) !ALL
20 >>
21 >> }:-)
22 >
23 >--
24 > GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF
25 >

Replies

Subject Author
Re: [gentoo-user] Update to /etc/sudoers disables wheel users!!! Ramon Fischer <Ramon_Fischer@×××××××.de>
Re: [gentoo-user] Update to /etc/sudoers disables wheel users!!! Grant Taylor <gtaylor@×××××××××××××××××××××.net>