GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How does user mapping work in Windows Subsystem for Linux, Linux user = Windows user? Possible to be root in WSL? (if yes, mapped to Windows administrator account?)
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
There is no user mapping. When you start wsl, you are "root" so you can do whatever you want in the linux subsystem, including creating alternate accounts and su'ing to them. Being root doesn't grant you any particular privileges outside wsl, where you stay with your Windows account rights.
I really don't know who dreamed-up this "subsystem," but as I said before, virtual-machine monitors can give you the real Linux ... running under the auspices of the host operating system (Windows) but entirely isolated from it.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
This is not something completely new, Windows NT was providing something similar 21 years ago with the (not particularly useful) POSIX susbsystem. Later it was replaced by Services for Unix. The real novelty is the ELF binary support.
This subsystem is indeed less isolated than a virtual machine and doesn't run at all the Linux kernel, a little like Wine is less isolated than a Windows VM running on Linux and Wine doesn't run the Windows kernel.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Not really.
Cygwin compiles and run Windows PE executables, not ELF ones. Everything has to be either available from the cygwin repository or recompiled from source. Linux subsystem for Windows doesn't require anything to be recompiled and doesn't provide any software repository because it doesn't need to.
On the other hand, cygwin still has some advantages compared to lsw, it includes an X11 server and it doesn't run in an isolated container. Cygwin processes can see windows processes and interact with them including launching them.
Personally, I have zero interest in this at all. I simply prefer Linux and very much dislike MS's condescending, draconian ways. I will not be assimilated.
I think that the usefulness of subsystems like this went-away when Virtual Machine technology (and the necessary microprocessor architecture advances) became commonplace.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Quote:
Originally Posted by sundialsvcs
I think that the usefulness of subsystems like this went-away when Virtual Machine technology (and the necessary microprocessor architecture advances) became commonplace.
IMHO, that's the other way around. Container based virtualization is slowly making hardware virtualization less relevant for many use cases. Breaking the kernel barrier like this subsystem does is going a step further.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Quote:
Originally Posted by sundialsvcs
I think that the usefulness of subsystems like this went-away when Virtual Machine technology (and the necessary microprocessor architecture advances) became commonplace.
Why would you, for example, fire up a VM to convert a directory full of photographs or videos on the command line?
Granted I struggle to think of a compelling use for this but there are times a VM is just too much hassle.
I'm interested to find out whether anyone will think of a good use for this. I'd also be interested to find out what Microsoft thinks people will use it for.
IMHO, that's the other way around. Container based virtualization is slowly making hardware virtualization less relevant for many use cases. Breaking the kernel barrier like this subsystem does is going a step further.
Unavoidably, "virtualization" involves hardware. (I have seen software-only virtualization, and it's called an "emulator.")
A VM monitor might put a console display in a window, but the guest operating system is running in an environment created by special hardware features of the chip that are specifically designed to support virtualization. (It is conceptually similar to the "privileged mode" and "rings" that support user-land in conventional operating systems, only "ever so much more so.")
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.