this post was submitted on 10 Nov 2024
216 points (86.0% liked)

Linuxsucks

176 readers
75 users here now

Shit on Desktop Linux and its evangelists here

No evangelizing for Linux

founded 1 month ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 6 days ago (1 children)

su allows you to swap to another user in shell, not just make yourself root.

'runas' looks like it'd do just the job

[–] [email protected] 2 points 6 days ago (1 children)

runas can do that, yes. Now how are you planning yo also create that user in the same command line? And to dispose of it automatically when the process ends?

[–] [email protected] 2 points 6 days ago

runas can do that, yes. But it won't make you a virtual file system, or give you a nat firewall.

One use case for this is the backblaze backup utility. It's kinda stupid in that it has an all-or-nothing approach to backups.

Putting it in a container restricts it in a much easier and reliable way than running it with a special user account.