superkret@feddit.org to Linuxsucks@lemmy.worldEnglish · 4 days agoWSL goes brrrfeddit.orgimagemessage-square50fedilinkarrow-up1255arrow-down139
arrow-up1216arrow-down1imageWSL goes brrrfeddit.orgsuperkret@feddit.org to Linuxsucks@lemmy.worldEnglish · 4 days agomessage-square50fedilink
minus-squarehemko@lemmy.dbzer0.comlinkfedilinkEnglisharrow-up3·3 days agosu allows you to swap to another user in shell, not just make yourself root. ‘runas’ looks like it’d do just the job
minus-squareBoomkop3@reddthat.comlinkfedilinkEnglisharrow-up2·3 days agorunas 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?
minus-squareBoomkop3@reddthat.comlinkfedilinkEnglisharrow-up2·3 days agorunas 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.
su allows you to swap to another user in shell, not just make yourself root.
‘runas’ looks like it’d do just the job
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?
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.