57
you are viewing a single comment's thread
view the rest of the comments
[-] TerHu@lemmy.dbzer0.com 11 points 1 month ago* (last edited 1 month ago)

as someone who has a similar setup of sudo needing reauth after a while, i can tell you that it’s really no issue. keep in mind it only prompts you for a password when using sudo, meaning it prompts you when you run sudo su, and then su is just running. for as long as su keeps running, you don’t need to rerun sudo su, meaning you don’t need to reauthenticate.

in other words. the reauthentication requirement will never kill any running processes. it just requires a password when running sudo.

edit: also, i would recommend sudo su - instead, because it makes sure you get the env vars that root uses. running sudo su has lead to lots of head scratching personally. (especially on debian where /sbin binaries are not in the path when using su without the dash)

[-] mesamunefire@piefed.social 4 points 1 month ago

Honestly I try not to use sudo su for anything other than making sure certain cronjobs work. And even then sparingly. sudo by itself is usually good enough.

Its still wild to me how Windows does auth. I have to fight with it at work all the time. Even run as admin doesnt always work haha.

this post was submitted on 17 Apr 2026
57 points (100.0% liked)

Linux

13801 readers
342 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS