this post was submitted on 10 Nov 2024
218 points (85.6% liked)

Linuxsucks

206 readers
199 users here now

Rules:

  1. FOSS advocates and Linux evangelists aren't welcome. -We ask that you block us.
  2. Moderation is heavy handed. Try to stay on topic.
  3. No Complaining Mute the sub if users, content, or rules bother you

founded 2 months ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] Boomkop3@reddthat.com 2 points 1 month 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?

[โ€“] Boomkop3@reddthat.com 2 points 1 month 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.