I've kicked myself out of the wheel group by running usermod -G
without -a
(add). Now, if I change to root by su
and do usermod -aG wheel myuser
I get no output, as expected. Likewise, groups myuser
outputs: "myuser : myuser wheel ...".
However, after relogging as myuser and just typing groups
gives me all other groups, but wheel!
- I googled a lot now and found, that wheel is the
admin
group of some systems. Which? Is fedora such a sys? - How do I get the sudo rights back for my fedora user?
the sudoers file has (albeit others) the entries: root ALL=(ALL) ALL
and the same with %wheel
To be more precise: I found a million commands adding users to various groups etc, but none worked for me. Since i do not understand the fact, that I do #su -c "usermod -aG wheel myuser"
and logged in to my user I still get no wheel group after typing groups
, I do not know how these things work or what is going on!
and Yeah, grep wheel /etc/group
gives wheel:x:10:myuser
root
, what doesgroups myuser
show? It's not absolutely clear from your writeup that you have logged out and in asmyuser
after you addedmyuser
back towheel
.