You are not logged in.

#1 2013-08-26 15:35:00

akisha
Member
Registered: 2013-08-16
Posts: 21

Incorrect login [Solved]

After a fresh installation and configuration as root, I got an error message "Incorrect login" when I tried to logon (with the correct password) as a user and root. The same error on the second reinstallation. I installed Arch many times already and no problem. (The only change is Arch with Fedora and Windows as triple-boot. But dual-boot with Fedora was ok.) Do you know where the fault may be?

Last edited by akisha (2013-08-27 09:14:57)

Offline

#2 2013-08-26 16:09:20

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

Re: Incorrect login [Solved]

If you use zsh as your shell, check if you haven't run into https://bugs.archlinux.org/task/36305

Offline

#3 2013-08-26 19:21:05

akisha
Member
Registered: 2013-08-16
Posts: 21

Re: Incorrect login [Solved]

zsh uses installation, if I'm not mistaken. Then is standard bash? After installation from CD, I did not install zsh or anything, only created user and reboot. With the useradd I added user to /bin/bash as in the tutorial. Without the ability to login as root is only way to change something unusual during a new installation.

Offline

#4 2013-08-26 22:02:06

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,010

Re: Incorrect login [Solved]

Hi, fastest way to solve this, chroot into your fresh installation and change the passwd for root and user, done.
But, could you show the command you used to create the user?

Offline

#5 2013-08-26 22:25:59

akisha
Member
Registered: 2013-08-16
Posts: 21

Re: Incorrect login [Solved]

useradd -m -g users -G audio,video,optical,storage,power,games,wheel -s /bin/bash akisha
I can chroot from Arch installation CD, right? I'm not sure how. Via commands: arch-chroot /mnt and passwd or /usr/bin/bash?

Offline

#6 2013-08-26 22:37:55

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,010

Re: Incorrect login [Solved]

Your command looks okay.
Yes, you can use your CD for that.
Don't worry, there is a  wiki page, explaining how it works, it's really quite simple, if I may say so.
Once chrooted, do your thing , again follow the wiki if you leave chroot, and you should be done after that.

Offline

#7 2013-08-26 23:04:17

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 6,104

Re: Incorrect login [Solved]

akisha wrote:

useradd -m -g users -G audio,video,optical,storage,power,games,wheel -s /bin/bash akisha

You almost certainly do not want to use that command if you are using systemd. Membership of many of those groups can case problems. You probably want

useradd -m -g users -G wheel -s /bin/bash akisha

I'm not certain about games, however.

mount file systems

arch-chroot /mnt /usr/bin/bash
passwd
passwd akisha

Last edited by cfr (2013-08-26 23:06:44)


How To Ask Questions The Smart Way | Help Vampires

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 Corporation Wireless 8265 / 8275 | US keyboard with Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#8 2013-08-27 08:38:03

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,010

Re: Incorrect login [Solved]

Hi, what is wrong with the useradd command, I always use something like that, when creating a user.
I hope you mean to not use it in chroot, because I didn't say that, I wanted to know what command was used, to create the user.

The way to change a passwd in chroot is like cfr said, but I would still advice to take a look at said wiki.

Offline

#9 2013-08-27 09:14:36

akisha
Member
Registered: 2013-08-16
Posts: 21

Re: Incorrect login [Solved]

Using the installation CD and ArchWiki I successfully set a password in chroot and login is ok. Thank you very much for help! smile

Offline

#10 2013-08-27 12:47:26

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

Re: Incorrect login [Solved]

cfr wrote:
akisha wrote:

useradd -m -g users -G audio,video,optical,storage,power,games,wheel -s /bin/bash akisha

You almost certainly do not want to use that command if you are using systemd. Membership of many of those groups can case problems.

qinohe wrote:

Hi, what is wrong with the useradd command, I always use something like that, when creating a user.

As cfr said, being a member of many of those groups may cause problems.

Offline

#11 2013-08-27 13:24:44

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,010

Re: Incorrect login [Solved]

karol wrote:
cfr wrote:
akisha wrote:

useradd -m -g users -G audio,video,optical,storage,power,games,wheel -s /bin/bash akisha

You almost certainly do not want to use that command if you are using systemd. Membership of many of those groups can case problems.

qinohe wrote:

Hi, what is wrong with the useradd command, I always use something like that, when creating a user.

As cfr said, being a member of many of those groups may cause problems.

Thanks for your answer, ah now I see, I was still using some of the mentioned groups like that.
Although, I don't recall having any issues with it, I changed it right away.

Last edited by qinohe (2013-08-27 13:27:18)

Offline

Board footer

Powered by FluxBB