@[email protected] to LinuxsucksEnglish • 4 days agoWSL goes brrrfeddit.orgimagemessage-square50fedilinkarrow-up1256arrow-down140
arrow-up1216arrow-down1imageWSL goes brrrfeddit.org@[email protected] to LinuxsucksEnglish • 4 days agomessage-square50fedilink
minus-square@[email protected]linkfedilinkEnglish1•4 days agoNot if you want to just pop it up with a single command line and close it as quickly
minus-square@[email protected]linkfedilinkEnglish2•4 days agoYou could just write a small script for that? There must be something like su
minus-square@[email protected]linkfedilinkEnglish2•4 days agoSu isn’t on windows, and does the exact opposite to restricting filesystem access to a specific subset
minus-square@[email protected]linkfedilinkEnglish3•4 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-square@[email protected]linkfedilinkEnglish2•4 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-square@[email protected]linkfedilinkEnglish2•4 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.
minus-square@[email protected]linkfedilinkEnglish1•4 days agoYou had me right up till the end…nice work.
Not if you want to just pop it up with a single command line and close it as quickly
You could just write a small script for that? There must be something like su
Su isn’t on windows, and does the exact opposite to restricting filesystem access to a specific subset
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.
You had me right up till the end…nice work.