Skip to content
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

root/sudo do not have 'root' permissions? #655

Closed
brianbob opened this issue Jul 14, 2016 · 4 comments
Closed

root/sudo do not have 'root' permissions? #655

brianbob opened this issue Jul 14, 2016 · 4 comments

Comments

@brianbob
Copy link

Please use the following bug reporting template to help produce actionable and reproduceable issues:

  • A brief description
    I was trying to install a LAMP stack, and while running mysql_secure_installation as root it was not able to create the files it needed, causing it to fail. (See attached screenshot)
  • Expected results
    mysql_secure_installation would run and complete without errors.
  • Actual results (with terminal output if applicable)
    terminal output
  • Your Windows build number
    build 14372.rs1_release.160620-2342
  • Steps / commands required to reproduce the error
    I was following the steps listed here in bash, and got to the mysql_secure_installation step
  • Strace of the failing command
  • Required packages and commands to install
    see instructions here

See our contributing instructions for assistance.

@benhillis
Copy link
Member

Have you tried running this after setting a password for the root user?

lxrun.exe /setdefaultuser root
bash.exe -c "passwd root"

@brianbob
Copy link
Author

I did have a password set for the root user when I ran it. I ran your commands (just to be sure) and tried it again, same result. I also tried reinstalling (lxrun /uninstall /full, lxrun /install) with the same results unfortunately.

@benhillis
Copy link
Member

@brianbob Are you running bash.exe as an admin user? Could you try running the installation out of a directory that is not /mnt/c/Windows/System32? It looks the install might be trying to create files in the current working directory which in your above example appears to be \windows\system32.

@benhillis
Copy link
Member

Closing out old threads. @brianbob if you are still experiencing issues on Creator's Update please let us know and reopen. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants