You are not logged in.

#1 2019-07-03 18:33:18

keiichiiownsu12
Member
Registered: 2019-04-16
Posts: 42

Passwd: Users cannot login to console with passwords set with passwd

When I change an account's password using passwd (or useradd/usermod -p <password>), and attempt to login using the console (i.e. tty1-8), I am returned the status: "Login Incorrect".

I am currently using the gnome DE and gdm DM. If I create an account using the gnome GUI, I am able to log in said user using gdm without a problem; however, if I attempt to log in said user using a tty console, using the same password, the console still returns "Login Incorrect".

My default account (i.e. the one made when I first installed arch) can still login to both gdm and the console without a problem. As a further test, I logged in to another console using my default account, did:

$sudo su
#passwd

Curiously, passwd did not prompt me to re-enter a password for the root account. Anyway, I exited root and this time just typed in:

$su
password:

And entered the new root password I set above. I was able to get into the root shell just fine. However, when I tried to login as root in a tty, making sure I was typing the same password as before, I was still told "Login Incorrect". I retried the su command in my default account, typed in the same root password I had set earlier, and was able to enter the root shell successfully. I made sure that I did indeed set the root password and not my default account's (re-logged in multiple times using the same password on the default account).

Also, as another test, I created a test account called "monkey" using the gnome gui, having the user input a password on first login. I set the pass for the account "monkey" to "monkey". Logged out to gdm. Re-logged in using the password "monkey", worked just fine. Tried to log in as "monkey" on the console, using the password "monkey". Again was told "Login Incorrect". As a further test, I changed "monkey" 's password from "monkey" to "monkey15", using passwd. Again, logged out to gdm, logged back in using the new password, was successful. Attempted to login using the console. Again was told "Login Incorrect"

I am curious, does this sound like user error on my part? Or is it a problem with either passwd, the gdm DM, PAM, or some other process? Basically, when I add a user and set their password from the command line, I want them to be able to login both using the console and the display manager. For whatever reason, I am unable to at the moment.


I, uh, nevermind

Offline

#2 2019-07-03 18:42:02

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,715

Re: Passwd: Users cannot login to console with passwords set with passwd

What are the contents of /etc/pam.d/login   ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2019-07-03 18:58:44

archimboldo
Member
Registered: 2016-03-07
Posts: 232

Re: Passwd: Users cannot login to console with passwords set with passwd

Maybe your keymap in /etc/vconsole.conf is an issue? Just a guess...


Rules for problems.
Everyone has problems. Animals have problems. And buildings. And cats, and trees.
Problems are your friends. Treat them well.

Offline

#4 2019-07-04 07:32:37

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,718
Website

Re: Passwd: Users cannot login to console with passwords set with passwd

I second a faulty vconsole.conf. Did you maybe forget to set the correct keyboard layout?


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#5 2019-07-05 17:01:41

keiichiiownsu12
Member
Registered: 2019-04-16
Posts: 42

Re: Passwd: Users cannot login to console with passwords set with passwd

Contents of /etc/pam.d/login:

#%PAM-1.0

auth       required     pam_securetty.so
auth       requisite    pam_nologin.so
auth       include      system-local-login
account    include      system-local-login
session    include      system-local-login

Also, it appears I do not have a vconsole.conf file in /etc/
There a good wiki page on how to set one up properly?

Weird, I didn't set one up on my other arch install and have not encountered the same issue. Particular reason why I'm encountering errors now? I am still curious why my default account's pass works on both. Also, why accounts created can login through the display manager and not the console. Unless that is precisely what vconsole.conf is for. . .haha


I, uh, nevermind

Offline

#6 2019-07-05 17:06:19

keiichiiownsu12
Member
Registered: 2019-04-16
Posts: 42

Re: Passwd: Users cannot login to console with passwords set with passwd

Nevermind on the last paragraph. Read the wiki. found out Xorg and console have two different variables. Funny what a little (targeted) reading can solve. . .
Anyway, will mark thread as solved if issue is fixed after.


I, uh, nevermind

Offline

#7 2019-07-05 17:20:01

keiichiiownsu12
Member
Registered: 2019-04-16
Posts: 42

Re: Passwd: Users cannot login to console with passwords set with passwd

So setting the keymap in vconsole.conf fixes the problem for normal accounts. I.e. creating a test account called "monkey" with the password "monkey" and am able to log in to the console and display manager.

Now I have a different problem. Please inform me if this is a separate issue. Will move to another thread if need be:
I reset root's password using

$sudo su
#passwd

and

$sudo passwd root

The password works when typing

$su

from my non-root admin account. But, alas, does not work in console. Is this a similar issue to what I was experiencing above? Or does root's password need to be reset using the live media?


I, uh, nevermind

Offline

Board footer

Powered by FluxBB