You are not logged in.

#1 2018-01-05 14:23:53

kaprikawn
Member
Registered: 2011-09-23
Posts: 25

[Solved] Wheel group functionality not working anymore

I added myself to the wheel group to enable sudo and that worked fine.  But now sudo doesn't seem to work, I assume it's from when I added myself to the input group because that's the only time I've touched groups since it worked.  I've tried removing myself from that group (because it turns out I didn't need it), but that didn't work and now the different ways of listing groups all contradict each other.

[kaprikawn@arch ~]$ groups
users input

I am NOT in the input group, though this says I am.

[kaprikawn@arch etc]$ cat /etc/group | grep kaprikawn
wheel:x:999:kaprikawn

The groups file lists me in the wheel group only.  It doesn't show me in the users group which is my primary group.

Can someone point me in the right direction as to how to fix this mess please.  I've tried readding myself to the wheel group using usermod, that didn't work.

Last edited by kaprikawn (2018-01-05 14:46:03)

Offline

#2 2018-01-05 14:29:53

ayekat
Member
Registered: 2011-01-17
Posts: 1,634

Re: [Solved] Wheel group functionality not working anymore

After changing your group memberships, have you restarted your user session?


pkgs │ hacks │ cfg │ blag

Offline

#3 2018-01-05 14:35:36

kaprikawn
Member
Registered: 2011-09-23
Posts: 25

Re: [Solved] Wheel group functionality not working anymore

Yes, it didn't make a difference unfortunately

Offline

#4 2018-01-05 14:39:57

ayekat
Member
Registered: 2011-01-17
Posts: 1,634

Re: [Solved] Wheel group functionality not working anymore

That's odd. Please paste the output of

id
id kaprikawn
getent group wheel input
grep '^\(wheel\|input\):' /etc/group

pkgs │ hacks │ cfg │ blag

Offline

#5 2018-01-05 14:44:10

kaprikawn
Member
Registered: 2011-09-23
Posts: 25

Re: [Solved] Wheel group functionality not working anymore

[kaprikawn@arch ~]$ id
uid=1000(kaprikawn) gid=986(users) groups=986(users),999(wheel)
[kaprikawn@arch ~]$ id kaprikawn
uid=1000(kaprikawn) gid=986(users) groups=986(users),999(wheel)
[kaprikawn@arch ~]$ getent group wheel input
wheel:x:999:kaprikawn
input:x:988:
[kaprikawn@arch ~]$ grep '^\(wheel\|input\):' /etc/group
wheel:x:999:kaprikawn
input:x:988:

Offline

#6 2018-01-05 14:45:45

kaprikawn
Member
Registered: 2011-09-23
Posts: 25

Re: [Solved] Wheel group functionality not working anymore

Sorry, don't worry, a reboot seems to have sorted it

Offline

Board footer

Powered by FluxBB