WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Please add multi-user support for wsl

Open jvollme opened this issue 6 years ago • 61 comments

Currently WSL has to be seperately installed for each user on a machine. That kind of wastes Linux's potential and is a big nuisance for sysadmins. You either have to install it manually for every individual user on that machine, or you risk letting them install it themselves thereby automatically granting them full admin rights for that linux subsystem.

A multiuser installation, installing WSL for all users on that machine, but only granting actual admin (sudo) rights to the system admins is desperately needed.

please see comments on the closed post #2979, for feedback from other users on that issue

jvollme avatar Apr 28 '20 17:04 jvollme

It can be done but it needs to go beyond what is documented.

Biswa96 avatar Apr 28 '20 17:04 Biswa96

@Biswa96 - it is unsupported. You will run into major issues if two users are concurrently trying to access the same distro.

benhillis avatar May 08 '20 15:05 benhillis

@Biswa96 - it is unsupported. You will run into major issues if two users are concurrently trying to access the same distro.

I would really like this feature. I have more than one developer account on my windows machine, but I'm never using both simultaneously. Couldn't you implement it with that restriction, that only a single account could be accessing it at any one time? I think this would be the most likely use case, if I'm not mistaken. I don't like the idea of having multiple large and identical linux distros eating up space on my hard disk, although it is tolerable for the moment.

EDIT: Mmmm, having read around a little bit more, it seems like genuine multi-user support is a valid requirement, so I retract my statement about a distro being accessed by only a single user at any one time.

Also, it would be helpful, if the documentation actually highlighted this short-coming. It took me ages to find this information.

plastikfan avatar May 16 '20 20:05 plastikfan

As a workaround, could I just create multiple linux accounts inside the same windows linux distro and have those identities completety isolated. So instead of having 2 windows accounts with their own Linux installs, just install Linux on a single windows account, and then inside that distro have 2 separate linux accounts, so that API keys and other identity related stuff are kept separated? I havent tried any of this out yet, since I'm waiting for 2004 to be released so I can use WSL2 with the latest Ubuntu distro which has some issues running on WSL1, apparently.

plastikfan avatar May 16 '20 21:05 plastikfan

Our corporate model allows us to have a dev user with local admin privileges, but our regular user account does not. I use the dev account to set things up and then run them with user account. I ran into this issue after setting up the latest Ubuntu with zsh and git, etc. Then it doesn't appear to exist to the regular user. I would appreciate support for this feature.

jellers avatar May 22 '20 17:05 jellers

Just gonna slip a +1 on this thread

maxtimbo avatar Jun 04 '20 18:06 maxtimbo

+1 as well

chriszuercher avatar Jun 08 '20 11:06 chriszuercher

+1 need this feature urgently.

annant05 avatar Sep 16 '20 13:09 annant05

+1 as well

skordesign avatar Sep 30 '20 21:09 skordesign

+1 was realy surprised this wasn't possible

SeSamSeg avatar Nov 21 '20 21:11 SeSamSeg

I would like to avoid to waste space disk in my laptop because I am the only person that uses it but I need several accounts (professional, personal, etc). This is kind of a bummer

liladude avatar Nov 23 '20 07:11 liladude

I would like to avoid to waste space disk in my laptop because I am the only person that uses it but I need several accounts (professional, personal, etc). This is kind of a bummer

I do the exact same thing. I have my personal account on my laptop, but then created a second "Work" user account to separate everything out. Only now when I tried to run something, did I realize that my Linux install wasn't showing up for the 'Work' user...

hololight avatar Dec 30 '20 14:12 hololight

+1 that would be very useful feature

sera13 avatar Mar 26 '21 17:03 sera13

+1 I work remotely so I have a work and personal account on my computer. Considering the size of the projects I work on, I don't have the storage space for two separate instances of WSL.

NeonWizard avatar Mar 30 '21 01:03 NeonWizard

+1 this is highly needed Each windows user should have its own profile on WSL rather than having to reinstall WSL for each and every user which is a complete waste of space. Root privileges should also match windows user account for security reasons.

joowdx avatar Apr 05 '21 08:04 joowdx

and another +1

urapadmin avatar May 22 '21 16:05 urapadmin

one more +1

manorit2001 avatar Jun 20 '21 05:06 manorit2001

Do you guys want to access a WSL distribution simultaneously or different user at different time?

Biswa96 avatar Jun 20 '21 07:06 Biswa96

Do you guys want to access a WSL distribution simultaneously or different user at different time?

Simultaneously would be nice but right now there isn't any support for different user at different time also right now natively. It is a headache installing WSL on every user account. It would be nice if they can emulate a linux based proper environment where wsl2 is running for all users but the privilege seperation exists based on users like it does on actual linux machine. I.e one machine, different users using it with different privileges

manorit2001 avatar Jun 20 '21 10:06 manorit2001

Simultaneously. Our use case is a server used by many researchers who need the X11 support provided by WSL.

serpico7456 avatar Jun 20 '21 12:06 serpico7456