this post was submitted on 02 Aug 2026
1 points (100.0% liked)

Linux Questions

4113 readers
3 users here now

Linux questions Rules (in addition of the Lemmy.zip rules)

Tips for giving and receiving help

Any rule violations will result in disciplinary actions

founded 3 years ago
MODERATORS
 

Distribution: Fedora Linux 44 (Workstation Edition)

I created a new Linux user and gave it admin with the gui interface, I then switched to it, but could not run sudo commands.

So I entered sudo usermod -a -G wheel [USER] to grant sudo rights through the cli, but still, the new user could not use sudo.

I logged in and out multiple times, but it did not help.

Then I restarted Linux and suddenly the new user could use sudo.

To test if it was now working, I striped sudo rights from the new user. But then I realized that the new user could still use sudo.

So it seems that sudo privileges only update on operating system restart? Is this correct, or is something wrong with my system?

Sorry if this is a stupid post

you are viewing a single comment's thread
view the rest of the comments
[–] CameronDev@programming.dev 0 points 4 days ago (1 children)

Not sure if there is a difference, might have to check the man page.

groups gives you your current active groups for your current session. /etc/groups will give you the groups that you get for the next session. Not sure about group username, might be the same.

Its weird, but given you won't be changing groups for users frequently, I don't think I would bother fixing it. Maybe Fedora changed something recently so this is how it is now? I would just forget about it.

[–] Remy@lemmy.today 0 points 4 days ago (1 children)

Ok,

My plan was just to make a "admin" user that has admin and sudo rights and then remove admin/sudo from my main user.

[–] Griffus@lemmy.zip 0 points 4 days ago

May I ask why you want tondo this?