Am Samstag, 5. November 2022, 18:40:10 CET schrieb Carlos E. R.:
On 2022-11-05 17:49, Ulf wrote:
Am Samstag, 5. November 2022, 13:38:34 CET schrieb Ben Greiner: On the end I added: $ su -c 'echo -e "# Added 2022-11-05\n%users ALL=(ALL:ALL) ALL" >> /etc/sudoers' This simple change fix the issue
That is not secure.
It should be:
%wheel ALL=(ALL:ALL) ALL
From my point of view it is similar secure like adding all users in the wheel group. But than you need to add each user to the wheel group. In my system # grep wheel /etc/group wheel:x:493: # grep 493 /etc/passwd rpc:x:493:480:User for rpcbind:/var/lib/empty:/usr/sbin/nologin # grep rpc /etc/shadow rpc:!:18776:::::: In my old system # grep 493 /etc/passwd firebird:x:493:478:Firebird SQL server:/srv/firebird:/bin/bash # grep firebird /etc/shadow firebird:!:18307:::::: In another system # grep 493 /etc/passwd messagebus:x:493:480:User for D-Bus:/run/dbus:/sbin/nologin # grep messagebus /etc/shadow messagebus:!:18618:::::: So means, this have later on sudo rights and at least for me as hobby user it looks like the available (automatic generated) wheel users have according my understanding access w/o login?! Ulf