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@lemmy.today
    link
    fedilink
    arrow-up
    16
    arrow-down
    1
    ·
    edit-2
    11 months ago

    My user account doesnt have sudo despite being in sudoers.

    I don’t know what behavior you are seeing.

    Install sudo, add the user to the sudo group, and log out and log back in again (okay, technically you could just sg sudo as that user rather than logging him out, but group privileges are assigned at login, and it’s probably easier to just log out).

    https://wiki.debian.org/sudo

    I cant run new commands i have to execute the binary.

    Normally running a command does execute a binary. You mean that you have to fully-specify the path to the binary, that it’s not in your PATH? Like, you’re typing /bin/ls rather than ls?

    It’s probably easier for people to understand what’s going on if you just paste the output you’re seeing and indicate what it is that you expected to see.

    • beirdobaggins@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      11 months ago

      When installing Debian, it asks you for a root password. If you enter one then you will not be added to the sudo group automatically. If you skip entering a root password, you will be added to sudo.

      I always enter a root password and then once in the installed OS switch to the root account with su - then add my self to sudo with usermod -aG sudo beirdo-baggins

      Then reboot.

      • tal@lemmy.today
        link
        fedilink
        arrow-up
        12
        ·
        edit-2
        11 months ago

        Debian’s got a sudo group, not a wheel group.

        EDIT: Oh, I see what you mean. Arch might use the wheel group and Debian the sudo group, and if he just copied his Arch sudoers file over his Debian one, it would reference the wheel group and wouldn’t work.

        googles

        Yeah, Arch has wheel.

        https://linuxopsys.com/topics/add-user-to-sudoers-in-arch-linux

        EDIT2: I bet he tried to add his user account explicitly to /etc/sudoers rather than just adding the account to the sudo group and just got the syntax wrong in one way or another, as the syntax of sudoers isn’t terribly intuitive.

        • Pantherina@feddit.de
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          11 months ago

          In english you can use “they” if you dont know the persons pronouns ;D also pretty sure OP is female

          But valid point, Debian is weird

          • tal@lemmy.today
            link
            fedilink
            arrow-up
            1
            arrow-down
            2
            ·
            edit-2
            11 months ago

            In english you can use “they” if you dont know the persons pronouns

            You can, but you can also use “he”, as English has a masculine generic.

            But valid point, Debian is weird

            I think that most Linux distros are based on Debian these days, as Fedora, the other major “parent” distro, seems not to be doing super-well, so I’d guess that most distros are probably using the sudo group.

            https://distrowatch.com/images/other/distro-family-tree.png

            Slackware looks not very alive these days, so I don’t think that there’s much going on with the child distros there any more.