GithubHelp home page GithubHelp logo

Default root pass? about archwsl HOT 7 CLOSED

yuk7 avatar yuk7 commented on July 30, 2024
Default root pass?

from archwsl.

Comments (7)

ShayBox avatar ShayBox commented on July 30, 2024

There is no default root password, you can change it with passwd though

WSL Ver: You check the zip name you downloaded from github.
Launcher Ver: You typed the wrong command for launcher version, Arch.exe version.

from archwsl.

yuk7 avatar yuk7 commented on July 30, 2024

The problem could not be confirmed in my environment.
Did you see any errors with passwd?

from archwsl.

lgjmac avatar lgjmac commented on July 30, 2024

Never had a problem with password.. Close?

from archwsl.

alxctc avatar alxctc commented on July 30, 2024

I encountered this issue, following the instruction to set password, and the password was verified to be wrong. And, I used the latest version:18100800 on windows 10 1809.
Reproduce :
arch.exe console :

[root@WIN-XXXXXXXXXXX ~]# passwd
New password:hello
Retype new password:hello
passwd: password updated successfully
[root@WIN-XXXXXXXXXXX ~]# EDITOR=vim visudo
%wheel ALL=(ALL) ALL
(removed the "#" and saved)
useradd -m -G wheel -s /bin/bash john

windows dos-prompt (admin) :

Arch.exe config --default-user john

arch.exe console :

[john@WIN-XXXXXXXXXXX ~]$ sudo pacman-key --init
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for john:hello
Sorry, try again.
[sudo] password for john:

Thank you for any help you can provide.

from archwsl.

ShayBox avatar ShayBox commented on July 30, 2024

you set the password of root not john

from archwsl.

yuk7 avatar yuk7 commented on July 30, 2024

I updated the wiki because there was a deficiency in the explanation...

Please set the default user password separately from the root password.

from archwsl.

alxctc avatar alxctc commented on July 30, 2024

I'm back and thanks for all the help from community.

I followed the new wiki, and created the password for both root and user, but still can't solve the issue. I tried to search about "wheel" and find the instruction here ( https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/2/html/Getting_Started_Guide/ch02s03.html ) can approve my user password,

The commands there are somewhat different, like :
$ useradd USERNAME
$ passwd USERNAME
$ visudo
%wheel ALL=(ALL) ALL
(remove the "#")
$ usermod -aG wheel USERNAME

Actually I tried yuk7 another project "wsldl" and build ubuntu 18.04, but add a line at /etc/sudoers (searched from internet), like this : (require to change file "sudoers" to be writable by "chmod u+w sudoers")
root All=(ALL:ALL) ALL
john ALL=(ALL:ALL) ALL
(add this line only, john is username.)
(save and make file sudoers return to be read-only by "chmod u-w sudoers")

Now I find both the builds of ubuntu and arch can run together. so I'm a happy user to learn arch linux things now.

from archwsl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.