-
Notifications
You must be signed in to change notification settings - Fork 823
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
Unable to run Ubuntu on WSL or Bash as an administrator #5727
Comments
Please provide the CLI steps leading up to
Do not run WSL as Windows Admin. |
I'm running Ubuntu or Bash as an administrator as the SSL Root Cert it's trying to download needs access to the ./root directory of Ubuntu distro running on WSL. The command ending to This command is specific to the internal environment for the organization I'm working with so will not work in your test environment. What I've found is the error is appearing because the Bash is not running as an administrator and does not have modify or write access to ./root directory. So currently I need to know how can I run Bash as an administrator so that it allows Certs to download in the ./root directory. |
Did you install your WSL distribution from the Store, or was the distribution installed manually? Are you able to start WSL with If not, please collect networking logs and submit via the feedback hub. Another approach would be do the |
I have the same problem. When I try to start wsl.exe from a admin powershell it says that I have no distros installed. When I try to run ubuntu as admin I get the same error as shown in the first comment from @harjeet-m (Windows cannot find 'C:\ProgramFiles....). Without admin rights everything works. But I need windows admin rights in ubuntu. Is there a workaround or something? |
Yo, this from almost two years ago now though, but you mentioned "able to start WSL when run from an elevated 'cmd.exe'", so I thought you might have the answer I've been looking for. T_T Errors: (I LISTED THESE even if they don't matter. These are the errors I get if I DON'T run WSL in an elevated state) Ubuntu: Vscode: I just now have this problem and I'm not sure how much I've already changed looking at fixes online. But I've just realized that I can't open WSL/Unbuntu without any admin rights. This happens every way to open it. Opening from cmd/Powershell requires running as admin. Opening wsl.exe or ubuntu.exe requires being run as admin. Even VScode requires it. At least my Vscode is working again with Admin rights. At first, it wasn't even working, even as admin, but something changed as I was looking for solutions online. |
Hi Team,
I've enabled WSL on my Windows 10 machine running on OS build 19041.388. I have installed Ubuntu on top of it. While I'm trying to download SSL Root Certs, it does not allow shows error (screenshot attached). I've figured that this is because it requires elevated access to download and save the certs in .root directory. So while I try to run Ubuntu on WSL as an administrator, it throws an error (screenshot attached). Also, it does not let me run Bash as an administrator, the Bash windows just flashes and disappears.
I need a fix to run either of these as an administrator to download SSL certs.
Thanks,
Harjeet
The text was updated successfully, but these errors were encountered: