My user account doesnt have sudo despite being in sudoers. I cant run new commands i have to execute the binary. Grub takes very long to load with “welcome to grub” message. I just wanted a stable distro as arch broke and currupted my external ssd

  • tal
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    1 year ago

    I’ve added myself to sudo but I keep getting “kicked out” when I start a new shell.

    Group permissions from the /etc/group file get assigned at login. Each process will inherit group memberships from its parent.

    You can see them for a process (self being the current process) in:

    $ grep ^Groups: /proc/self/status
    

    The gids there correspond to the gids in /etc/group.

    That’s why the need to log out the user in question after adding the user to a group, unless you’re gonna use sg or similar to add that gid and then have all your new processes started by that process that you just started with the new gid.

    You’ll see this with all user memberships in groups on Linux. It’s not behavior specific to Debian or specific to membership in the wheel or sudo group.