Hello everyone, I am running Debian on my home server and I also do have a raspberrpi with raspberry pi os.

When I do connect to my raspberry via ssh (with keys, not password) I do not need to enter a password when I do run a command with sudo.

Someone here can guie me on how to replicate that behaviour on Debian 12 stable?

  • Rozaŭtuno
    link
    fedilink
    11 month ago

    Are you sure you’re not logging in as root? Try sshing and run whoami.

    • @zipping2583OP
      link
      11 month ago

      I did not set up the user root, I gave the normal user superuser-permission during set up

      • @PassingThrough
        link
        English
        3
        edit-2
        1 month ago

        Since you mention setup instead of any manual install screwery, I’d say root(uid 0) is still very real, you just didn’t setup any login for it. Every time you sudo (substitute-user-do), you(probably uid 1000) are running that command as root instead of you. In fact, just sudo -i and you are now “logged in” as root.

        Edit: Missed the context. Should still be useful info but you probably are not accidentally remoting into an account you never setup the login for.