Get into wheel group
Try rebooting. It looks like you're definitely in the wheel group. It's likely that you're just not fully logging out; shutting down will remove any doubt that you have logged out.
Related videos on Youtube
mike
Updated on September 18, 2022Comments
-
mike over 1 year
I've kicked myself out of the wheel group by running
usermod -G
without-a
(add). Now, if I change to root bysu
and dousermod -aG wheel myuser
I get no output, as expected. Likewise,groups myuser
outputs: "myuser : myuser wheel ...". However, after relogging as myuser and just typinggroups
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 typinggroups
, I do not know how these things work or what is going on!and Yeah,
grep wheel /etc/group
giveswheel:x:10:myuser
-
rush over 7 yearsNot sure if you're using graphical interface. But keep in mind that all group changes are applied only after logout and login (or in completely new session). Closing / opening terminal window in existing X session doesn't work.
-
MikeA over 7 yearsAs
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
.
- I googled a lot now and found, that wheel is the
-
jayhendren over 7 years
getent group <name>
shows the group with name<name>
, not the groups that a user called<name>
belongs to. To see which groups a user belongs to, usegroups <name>
instead. -
Orsius over 7 yearsNo needs to vote Negatively my answer ... just trying to help here