You are not logged in.

#1 2013-07-03 11:57:05

madjo
Member
Registered: 2012-09-25
Posts: 4

Can't log in with newly created user on new install of Arch [solved]

Hi all,

Yesterday I installed Arch anew (because I had a hardware failure that took out my hard drive), but now I'm encountering an issue with logging in.
After following the installation guide, and creating a new user, I find that I'm unable to log in as said user.
It complains about wrong password, but it's the exact same password that I entered mere moments before that, when creating the new user.

I can "log in" as said user by first logging in as root (which does work) and doing "su - <username>" (though then it doesn't ask for a password).
Can someone point me in the right direction to fix this problem?

Last edited by madjo (2013-07-03 20:19:43)

Offline

#2 2013-07-03 12:04:03

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,551
Website

Re: Can't log in with newly created user on new install of Arch [solved]

When logged in as root, use `passwd <username>` to change the password for the user.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2013-07-03 12:50:34

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Can't log in with newly created user on new install of Arch [solved]

Please post exact commands and output you got, "It complains about wrong password" may be too vague/

Are you using zsh https://bugs.archlinux.org/task/35724 ?

Offline

#4 2013-07-03 13:40:05

cookies
Member
Registered: 2013-01-17
Posts: 253

Re: Can't log in with newly created user on new install of Arch [solved]

Did you use /usr/bin/bash instead of just /bin/bash as your shell when creating the new user?

Offline

#5 2013-07-03 20:19:27

madjo
Member
Registered: 2012-09-25
Posts: 4

Re: Can't log in with newly created user on new install of Arch [solved]

It said "invalid login", and indeed I had tried to set it up with zsh as default shell (after I had done `pacman -S zsh`).

I tried it again today,without specifying a shell, and now it does work.

So now I can continue setting up the machine. Thanks any and all for your time.

Offline

#6 2013-07-03 22:58:07

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,137

Re: Can't log in with newly created user on new install of Arch [solved]

Check the shell you want to use is in /etc/shells. E.g. bash needs to be specified as /bin/bash and NOT as /usr/bin/bash even though that is the path.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#7 2013-07-03 23:19:43

madjo
Member
Registered: 2012-09-25
Posts: 4

Re: Can't log in with newly created user on new install of Arch [solved]

bash is specified as /bin/bash, zsh was later (auto-)appended as /usr/bin/zsh. So that could be it.

Offline

#8 2013-07-03 23:27:22

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Can't log in with newly created user on new install of Arch [solved]

I think cfr meant to say you shouldn't "fix" bash path - as some users did. Unfortunately there's a bit confusion wrt which paths should be used - see this ML thread.
Some say we should keep /bin/foo for compatibility, others say that we should boldly move to /usr/bin/foo.

Offline

Board footer

Powered by FluxBB