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 |
> |