-
Notifications
You must be signed in to change notification settings - Fork 846
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to change uid ? #3576
Comments
@ish-org - Which distribution are you using? |
I'm using WLinux version 1.1.15.0 purchased from the windows store. |
I found that this thread is for ubuntu, sorry. Is there any versions/distributions of specifying UID/GID for initial user creation ? |
I solved this problem. |
Good to know. Thank you, @ish-org. |
Hi, @ish-org I am looking for methods to mount NFS in WSL. Until now, I only found this issue #2869 saying that there was no support for NFS. It seems that you have mounted NFS successfully. Could you please describe the procedures? Or has WSL alreadly supported NFS now? I am using Ubuntu18.04 on win10 and keeping receiving error: mount.nfs: no such device. Thank you very much! |
I solve this problem in wsl2 using the following two steps:
|
I want to specify uid and gid for user foo because I don't use map for NFS.
I changed the uid/gid as follows, but this makes 0x80040305 error.
(1) add newgrp by vigr and vigr -s
(2) usermod -g newgrp foo
(3) edit gid in /etc/wsl.conf
This seems working good.
(4) change uid for foo by vipw
(5) chown -R foo ~foo
(5) edit uid in /etc/wsl.conf
(6) reboot windows10pro.
This makes 0x80040305 error.
The text was updated successfully, but these errors were encountered: