You are not logged in.
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
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
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
Did you use /usr/bin/bash instead of just /bin/bash as your shell when creating the new user?
Offline
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
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
bash is specified as /bin/bash, zsh was later (auto-)appended as /usr/bin/zsh. So that could be it.
Offline
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