216
WSL goes brrr (feddit.org)
you are viewing a single comment's thread
view the rest of the comments
[-] Boomkop3@reddthat.com 2 points 5 days ago

Actually no, wine is pretty handy within wsl on windows to restrict windows apps to certain folders on your system

[-] hemko@lemmy.dbzer0.com 6 points 5 days ago

Wouldn't it be easier to run the program as an user with restricted access...?

[-] Boomkop3@reddthat.com 1 points 5 days ago

Not if you want to just pop it up with a single command line and close it as quickly

[-] hemko@lemmy.dbzer0.com 2 points 5 days ago

You could just write a small script for that? There must be something like su

[-] Boomkop3@reddthat.com 2 points 4 days ago

Su isn't on windows, and does the exact opposite to restricting filesystem access to a specific subset

[-] hemko@lemmy.dbzer0.com 3 points 4 days ago

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

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

[-] Boomkop3@reddthat.com 2 points 4 days ago

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 4 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.

[-] absGeekNZ@lemmy.nz 1 points 4 days ago

You had me right up till the end.....nice work.

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

Linuxsucks

171 readers
86 users here now

Shit on Desktop Linux and its evangelists here

No evangelizing for Linux

founded 1 month ago
MODERATORS