LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 06-04-2016, 08:21 AM   #16
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872

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?)
 
Old 06-04-2016, 05:01 PM   #17
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 06-05-2016, 08:22 AM   #18
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
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.
 
Old 06-05-2016, 04:12 PM   #19
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 06-05-2016, 04:41 PM   #20
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
It's basically this:

https://www.cygwin.com/
 
Old 06-05-2016, 04:59 PM   #21
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 06-07-2016, 09:20 PM   #22
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Moved: This thread is more suitable in <GENERAL> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 06-08-2016, 12:10 AM   #23
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
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.
 
Old 06-09-2016, 07:07 AM   #24
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
I think that the usefulness of subsystems like this went-away when Virtual Machine technology (and the necessary microprocessor architecture advances) became commonplace.
 
Old 06-09-2016, 01:10 PM   #25
offgridguy
Senior Member
 
Registered: Nov 2015
Location: Alberta Canada
Distribution: Windows10, Debian
Posts: 1,109

Rep: Reputation: 147Reputation: 147
Quote:
Originally Posted by rtmistler View Post
And if I want to see Windows run on my computer, I run Windows.

Why bother with the novelty of "I ran that here!""
+1.
 
Old 06-09-2016, 01:19 PM   #26
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Question

0110100001100101011011000110110001101111 d29ybGQ=

http://www.linuxquestions.org/questi...thread-848145/
 
Old 06-10-2016, 06:06 PM   #27
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by sundialsvcs View Post
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.
 
Old 06-11-2016, 07:46 AM   #28
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
IMHO if your hardware supports visualization it likely rocks both ways.
Attached Thumbnails
Click image for larger version

Name:	mobile%20content%20that%20rocks.png
Views:	9
Size:	91.2 KB
ID:	22074  
 
Old 06-12-2016, 11:14 AM   #29
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by sundialsvcs View Post
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.
 
Old 06-13-2016, 07:38 AM   #30
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Quote:
Originally Posted by jlliagre View Post
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.")
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Access Linux Files In Windows When Dual Booting Linux, Ubuntu, Linux Mint And Windows LXer Syndicated Linux News 0 09-05-2015 08:21 AM
How to chain proxies linux:linux:windows without ssh server on windows? vcguy Linux - Networking 1 04-13-2008 09:24 AM
Solution Dual Boot Windows & Linux [ALL DONE IN WINDOWS] No Linux terminology DSargeant Linux - Newbie 35 02-07-2006 03:29 PM
Solution Dual Boot Windows & Linux [ALL DONE IN WINDOWS] No Linux terminology DSargeant Linux - Newbie 4 11-10-2005 11:37 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 08:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration