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

Linux

14720 readers
362 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 3 years ago
MODERATORS
top 12 comments
sorted by: hot top controversial new old
[–] mesamunefire@piefed.social 16 points 4 months ago (4 children)

Everything sounds good. It really should be setup and used like any other linux distro.

except asking every 5 minutes. That sounds kinda sucky. Im wondering how sudo su would work?

Anyways much more info here:
https://www.raspberrypi.com/news/a-security-update-for-raspberry-pi-os/

[–] thurstylark@lemmy.today 14 points 4 months ago* (last edited 4 months ago)

The answer to the text of the question is: that would continue to work. sudo doesn't re-auth while a child process is still running, which in this case is su. Until su terminates, sudo doesn't have anything to say about it. To be a bit more precise, the time limit for reauth would expire, but sudo doesn't ask for authorization, and therefore wouldn't check if that timeout has elapsed, until the next invocation.

To answer the spirit of the question: you should probably be using sudo -i instead.

[–] TerHu@lemmy.dbzer0.com 11 points 4 months ago* (last edited 4 months ago) (1 children)

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 4 months 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.

[–] PabloSexcrowbar@piefed.social 8 points 4 months ago (1 children)

There's always sudo -i, which starts a root shell. I imagine that's untouched.

[–] mesamunefire@piefed.social 2 points 4 months ago (1 children)

Ive used linux for a LONG time but this is the first time I learned about that one. Thanks!

[–] PabloSexcrowbar@piefed.social 5 points 4 months ago (1 children)

There's also sudo -s if you want it to inherit the environment from the user calling sudo!

[–] mesamunefire@piefed.social 2 points 4 months ago (1 children)

I should man sudo sometime.

[–] homesweethomeMrL@lemmy.world 0 points 4 months ago (1 children)
[–] bitcrafter@programming.dev 1 points 4 months ago

Unlikely; they said man sudo, not woman sudo.

[–] santa@sh.itjust.works 2 points 4 months ago* (last edited 4 months ago) (1 children)

That’s a configuration change. Distributions will decide differently and they can all decide something different. Not the same issue with BSD.

[–] MadhuGururajan@programming.dev 1 points 4 months ago

oh is there a controversy with BSD?