You are not logged in.
Hi,
newly installed sudo isn't working properly:
$ sudo shutdown -r now
[sudo] password for me:
Sorry, user me is not allowed to execute '/sbin/shutdown -r now' as root on mybox.
$ $
Curiously, sudo honors pacman, for instance:
$ sudo pacman -Syu
as specified in visudo:
root ALL=(ALL) ALL
%wheel ALL=(ALL) ALL
%users ALL=NOPASSWD: /usr/bin/pacman
%users ALL=NOPASSWD: /usr/bin/pacman-color
%users ALL=NOPASSWD: /usr/bin/pacdiffviewer
Any ideas?
Last edited by Llama (2012-10-19 13:26:47)
Offline
Are you in wheel?
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Thanks, WorMzy!
# gpasswd -a me wheel
is the soluiton.
By the way, the groups part as a step has vanished from the Beginner's Guide, which is supposed to be a step-by-step instruction. Perhaps 'be sure to consult' remark would be better than 'for more information'.
Last edited by Llama (2012-10-19 13:25:37)
Offline
Alternatively you can add permissions on a per-user basis. So instead of
%wheel ALL=(ALL) ALLyou can have
me ALL=(ALL) ALLFYI your visudo setup let's anyone in the users group update pacman, if you ever add more users you'll probably want to change that.
Rauchen verboten
Offline