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?

You are viewing a single thread.
View all comments
1 point

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

permalink
report
reply
1 point

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

permalink
report
parent
reply
3 points
*

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.

permalink
report
parent
reply

Debian operating system

!debian@lemmy.ml

Create post

Debian is a free operating system (OS) for your computer. An operating system is the set of basic programs and utilities that make your computer run. Debian provides more than a pure OS: it comes with over 59000 packages, precompiled software bundled up in a nice format for easy installation on your machine.

Community stats

  • 48

    Monthly active users

  • 64

    Posts

  • 66

    Comments

Community moderators