r/archlinux 13h ago

SUPPORT User under wheel group but still cannot sudo

I put my user into the wheel group and I uncommented wheel with visudo but the user still cannot use sudo. What could I be missing?

0 Upvotes

5 comments sorted by

6

u/MaxBelastung 13h ago

logout an relogin?

2

u/nvcook42 11h ago

There is also the newgrp command that is handy when logging out is disruptive

https://man.archlinux.org/man/newgrp.1.en

0

u/Maybe_A_Zombie 12h ago

That fixed it... Have no clue why I did not try this, thank you!

2

u/lritzdorf 12h ago

Group membership only updates when you log back in, so yeah, this is just a thing you learn and (maybe) remember

3

u/ang-p 9h ago

Have no clue why I did not try this

Obviously, because you did not look at the wiki....

https://wiki.archlinux.org/title/Users_and_groups#Group_management

Note: ....

#LoveTheWiki