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

  • Remy@lemmy.todayOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    9 days ago

    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.

      • Remy@lemmy.todayOP
        link
        fedilink
        English
        arrow-up
        2
        ·
        8 days ago

        So that I be able to use Gnome Parental Control to regulate my self. Especially in the way of bedtime enforcement

        • Griffus@lemmy.zip
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 day ago

          Not a bad idea! I started with a sun based dimming and red shift of the screen light, so that it’s not keeping me awake, but I live in Norway, so I had to switch to clock based, as we switch between 3 hours of daytime to 3 hours of nighttime throughout the years, but it has worked out quite well over the last few years. Not restrictive if I want to stay up, but still not keeping me awake, making it easy to go straight to bed when I’m getting drowsy.