I think you could use newgrp sudo so you don't need to reboot.
Linux Questions
Linux questions Rules (in addition of the Lemmy.zip rules)
- stay on topic
- be nice (no name calling)
- do not post long blocks of text such as logs
- do not delete your posts
- only post questions (no information posts)
Tips for giving and receiving help
- be as clear and specific
- say thank you if a solution works
- verify your solutions before posting them as facts.
Any rule violations will result in disciplinary actions
I tried this with newgrp wheel but still the new user don't update its privileges
I would expect this to get set on login but maybe it’s some systemd quirk.
Normally groups update at login, so logging in and out should have done it. When your logged in, groups should give you your active groups.
I tried logging in and out multiple times, for the case that user switching doesn't count as re-login.
Yeah, thats very weird. I dunno if that is some new quirk, but it definitely sounds wrong. You can also cat /etc/groups to see what groups a user has been added to, maybe something was preventing that file being updated?
You can also cat /etc/groups to see what groups a user has been added to, maybe something was preventing that file being updated?
Is there a difference to group [Username] ?
Do you think that its necesary for me to fix this, or could I just accept that its that way and I need to reboot if I change permissions?
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.
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.
May I ask why you want tondo this?