this post was submitted on 16 Aug 2024
3 points (80.0% liked)

Debian operating system

2716 readers
2 users here now

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.

founded 4 years ago
MODERATORS
 

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 comment's thread
view the rest of the comments
[–] Rozauhtuno@lemmy.blahaj.zone 1 points 2 months ago (1 children)

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

[–] zipping2583@lemmy.world 1 points 2 months ago (1 children)

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

[–] PassingThrough@lemmy.world 3 points 2 months ago* (last edited 2 months 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.