by throw0101d · 2y ago · 0 comments
Except if you're on a team of sysadmins running a fleet of systems, either a whole bunch of cattle and/or numerous pets.
There are numerous occasions that I have to SSH to look at something on an individual system, and it's best practice to go in as yourself and then sudo-to-root if you need to poke into privileged parts. App folks can also be allowed in unprivileged and become the service users if needed.
The fact that sudo can hook into LDAP also means we can centralize privilege escalations with groups and (particular) hosts.
Lots of HPC out there as well that is multi-user.
not trying to be rude but this doesn't sound like "most people"
I understand that I’m not the average user, but then again, nobody really is.
On the other hand, I tried to use powershell the other day for some simple admin tasks and ooooh wow I sure don't have anything nice to say.
Also my living is made on the Windows side, and not the Linux side, so I guess I don't know the pain points of WSL.
Let the flamewars begin!
Kind regard, Roel (former physicist, developing Android apps (for fun) on my Linux laptop, owner of multiple NAS, but never having been a sysadmin in any company)
Isn’t Android the most popular Linux distro these days? Probably also most TV set-top boxes and other IoT devices
> not trying to be rude but this doesn't sound like "most people"
Sure. But sudo still serves a purpose for those folks.
I also use sudo on my macOS system(s) (e.g., MacPorts).
Auditing.
> Can you give an example that justifies typing your password up to hundreds of times per day coupled with deliberate hashing delays?
1. I don't do that hundreds of times per day because the stuff I run generally runs pretty well.
2. sudo has password caching, so only the first execution needs a password.
3. If I'm doing a lot, I may sudo-to-root: auditing can still see me going in and becoming root, so it can be determined that I did stuff.
The only ones this message applies are the HPC ones and the "app folks", and the number of ssh-apps that require you to log in another computer is very small nowadays.