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

Default root pass? #49

Closed
jkw opened this issue Sep 4, 2018 · 7 comments
Closed

Default root pass? #49

jkw opened this issue Sep 4, 2018 · 7 comments

Comments

@jkw
Copy link

jkw commented Sep 4, 2018

IMPORTANT
Please read README and Known issues before creating the issue.

Please fill out the below information:
Describe the issue
Trying to change root password, to be able to add users to sudo.

To Reproduce
Try to change root password with 'passwd'

Expected behavior
Expected the password to be root, arch or similiar, but nothing helped.

Screenshots
Can add if needed?

Enviroment:
Microsoft Windows [Version 10.0.17744.1001]

  • ArchWSL version [e.g. 18081100] (version of zip)
    How to check?
  • Launcher version [e.g. 18080900] (Type Arch.exe version at a Command Prompt)
    C:\Users\kwedm\Desktop\Arch>Arch.exe
    [root@Yotta ~]#

Additional context
Much of the help in template didn't really help at all....

@ShayBox
Copy link

ShayBox commented Sep 14, 2018

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.

@yuk7
Copy link
Owner

yuk7 commented Sep 16, 2018

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

@lgjmac
Copy link

lgjmac commented Oct 2, 2018

Never had a problem with password.. Close?

@alxctc
Copy link

alxctc commented Oct 18, 2018

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.

@ShayBox
Copy link

ShayBox commented Oct 19, 2018

you set the password of root not john

@yuk7
Copy link
Owner

yuk7 commented Oct 19, 2018

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

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

@alxctc
Copy link

alxctc commented Oct 20, 2018

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.

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

No branches or pull requests

5 participants