this post was submitted on 01 May 2024
135 points (97.2% liked)

Open Source

31097 readers
751 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] zero_spelled_with_an_ecks 6 points 6 months ago (2 children)

So none of my environment variables come with? ๐Ÿ˜

[โ€“] [email protected] 15 points 6 months ago

I would fucking hope not. TERM is explicitly passed along as the only exception, which is the only sensible default for temporary privilege elevation in a shell.

[โ€“] [email protected] 6 points 6 months ago

Sudo also blocks almost all environment variables, with the option to set or copy them on demand. I assume that run0 will have similar facilities to propagate variables on demand.

PS: This is my technical understanding. Personally, I don't like systemd eating up all the other utilities.