Page 1 of 1

Login fails for other users

PostPosted: Jul 10th, '16, 21:09
by saptech
Here is the official bug report on this issue with more details & comments.
https://bugs.mageia.org/show_bug.cgi?id=17504
This was installed on real hardware and my /home is on a separate partition. x86_64 arch.

After installing Magiea-6-sta1-live-dvd, I'm not able to log into a second user account using the 'Switch User' feature. At the sddm screen I get login failed message. Two old users, debbie & speden, both show as 'expired' and changing the 'Expire date' doesn't make a difference.

Code: Select all
# ls -l /home
total 36
drwx------ 28 debbie  debbie  4096 Jul  3 17:29 debbie/
drwxr-xr-x 17 saptech live    4096 Jul  3 22:35 live/
drwx------  2 root    root   16384 Mar 20  2015 lost+found/
drwxr-xr-x 60 saptech live    4096 Jul  4 08:47 saptech/
drwx------ 34 speden  speden  4096 May 12 09:43 speden/

# ls -al /etc/ | grep shadow
-r--r-----   1 root shadow    810 Jul  3 23:38 gshadow
-r--r-----   1 root shadow    803 Jul  3 23:38 gshadow-
-rw-r-----   1 root shadow   5396 Feb 12 13:48 login.defs
-r--r-----   1 root shadow   1025 Jul  3 22:51 shadow
-r--r-----   1 root shadow    962 Jul  3 22:51 shadow-
-rw-------   1 root root        0 Jun 29 08:44 shadow.lock


I noticed this around July 4. This has been an ongoing issue and I posted my issue with someone else having a similar issue.

If I create a brand new user, it works fine, but current users are having problems, except for the original 'saptech' account.

Thnx.

Re: Login fails for other users

PostPosted: Jul 11th, '16, 00:23
by marja
You didn't remove /etc/shadow.lock ?

If it's still there, then please remove it :-)

Re: Login fails for other users

PostPosted: Jul 11th, '16, 00:34
by ozky
Yeah it's working to manual fix to it. :)

Re: Login fails for other users

PostPosted: Jul 11th, '16, 00:41
by saptech
Yes, I deleted the shadow lock file.

I deleted & recreated user speden. It showed as Locked and I unlocked it. I rebooted and logged in as saptech and switched to tty2, signed in as speden, but it went straight to the user prompt ($). It didn't ask for a password, even though I gave it one.

Re: Login fails for other users

PostPosted: Jul 11th, '16, 09:23
by marja
Was this originally a Live install or a traditional install?

With which tool did you delete user speden?

Can you retry (so make sure there's no lock file and delete user speden) and then see whether the following commands return anything:

Code: Select all
grep speden /etc/passwd

and as root:
Code: Select all
grep speden /etc/shadow

Code: Select all
grep speden /etc/gshadow


(they should all return nothing after deleting speden)

Oh, and I don't use sudo, but you might have something about speden in the sudoers file. Please do
Code: Select all
grep speden /etc/sudoers
, too.

And the output of
Code: Select all
grep wheel /etc/sudoers
would be nice to see, too.

Re: Login fails for other users

PostPosted: Jul 13th, '16, 16:16
by morgano
Regarding recently created users not being able to log in (after the fix in Bug 17504),
there is work being done on Bug 18930

Re: Login fails for other users

PostPosted: Jul 15th, '16, 13:07
by ozky
According to philippe makowski that your posted bug is duplicate.
Seems that we have to set this one as a duplicate of #17504

Here is right one.
https://bugs.mageia.org/show_bug.cgi?id=17504

Re: Login fails for other users

PostPosted: Jul 18th, '16, 23:57
by saptech
marja wrote:Was this originally a Live install or a traditional install?
Yes, Mga5 Live but /home is on separate partition.

With which tool did you delete user speden?

MCC, Users & Groups.


Can you retry (so make sure there's no lock file and delete user speden) and then see whether the following commands return anything:

I deleted & recreated user speden. It showed as Locked and I unlocked it.

Code: Select all
grep speden /etc/passwd

and as root:
speden:x:1002:1002:speden:/home/speden:/bin/bash

Code: Select all
grep speden /etc/shadow

speden::16991::99999:::18314:

Code: Select all
grep speden /etc/gshadow

speden:!!::

(they should all return nothing after deleting speden)

Oh, and I don't use sudo, but you might have something about speden in the sudoers file. Please do
Code: Select all
grep speden /etc/sudoers
, too.
I haven't added speden to the sudoers file since removing it.

And the output of
Code: Select all
grep wheel /etc/sudoers
would be nice to see, too.

Same, haven't added speden yet.

Sorry, I've been busy and haven't been using Mga6 lately. I'm getting the time to start back. Thanks.