You are not logged in.
i have a small problem here... wondering if you guys could help.
I've installed Arch on my laptop a few days ago and as i recall, everything was working fine as far as my personal account being part of the wheel group and being enabled in the sudoers file ( %wheel ALL=(ALL) ALL ).
I could execute sudo commands just fine but starting this morning, if i tried to run a sudo command, i started getting the message that i'm not part of sudoers and that this incident will be reported. Yet if i switch to root and do "cat /etc/group | grep wheel" and have a look at visudo, everything seems to be in order. I DO see my username in the wheel group and the %wheel ALL=(ALL) ALL command is uncommented and in function. Am i missing something?
Last edited by KinnayDramis (2020-05-29 01:32:53)
Offline
I DO see my username in the wheel group and ...
We don't. Show us.
Specifically, output from each of the following would be good:
whoami
grep $USER /etc/group
groups
stat /bin/sudo
grep wheel /etc/sudoersAlso (a link to) the journal would be good.
Last edited by Trilby (2020-05-29 01:04:10)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Sure! There you go
Sorry my locale is fr_CA
[yannick@veeshan ~]$ whoami
yannick[yannick@veeshan ~]$ grep yannick /etc/group
wheel:x:998:yannick
kvm:x:992:yannick[yannick@veeshan ~]$ groups
users kvm[yannick@veeshan ~]$ stat /bin/sudo
Fichier : /bin/sudo
Taille : 161592 Blocs : 320 Blocs d'E/S : 4096 fichier
Périphérique : 10306h/66310d Inœud : 810115 Liens : 1
Accès : (4755/-rwsr-xr-x) UID : ( 0/ root) GID : ( 0/ root)
Accès : 2020-05-27 23:01:44.207639007 -0400
Modif. : 2020-05-12 09:14:40.000000000 -0400
Changt : 2020-05-26 22:30:33.328505698 -0400
Créé : 2020-05-26 22:30:33.325172389 -0400[root@veeshan yannick]# grep wheel /etc/sudoers
## Uncomment to allow members of group wheel to execute any command
%wheel ALL=(ALL) ALL
# %wheel ALL=(ALL) NOPASSWD: ALLLast edited by KinnayDramis (2020-05-29 01:10:53)
Offline
groups does not show wheel. Have you been making any changes to users / groups? If so, have you logged out and back in again recently?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I had noticed that wheel was not showing with groups.
I MIGHT have made changes to users or groups yesterday but i don't remember anything specific about what i did...
BUT... i tried adding
usermod -aG wheel yannickAnd rebooted... Now everything is working fine... and wheel is showing in groups...
Offline