Login fails for other users

This forum is dedicated to testing early releases and cauldron : Howtos, tips, tricks and user global feedback and thoughts...

Helpful tip :
For bugs tracking we use : https://bugs.mageia.org = The Mageia Bug Tracker
In this bug tracker you'll find already reported bugs and you'll be able to report those you have found....

Login fails for other users

Postby saptech » Jul 10th, '16, 21:09

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.
Last edited by isadora on Jul 10th, '16, 21:37, edited 1 time in total.
Reason: Placed command-output in between [CODE]-tags for better readability ;)
Each One Teach One
--------------------------------
Mageia 7 & Debian 10
HP Compaq Elite 8300 | Intel Core i5 | 8gb | 120gb SSD
--------------------------
Mageia 7 & Debian 10
Dell Optiplex 760 | Quad Core | 4gb | 250gb HDD
User avatar
saptech
 
Posts: 234
Joined: Apr 5th, '11, 08:36
Location: STL

Re: Login fails for other users

Postby marja » Jul 11th, '16, 00:23

You didn't remove /etc/shadow.lock ?

If it's still there, then please remove it :-)
User avatar
marja
 
Posts: 546
Joined: Aug 22nd, '11, 20:50

Re: Login fails for other users

Postby ozky » Jul 11th, '16, 00:34

Yeah it's working to manual fix to it. :)
Image
Mageia user
User avatar
ozky
 
Posts: 581
Joined: Jul 2nd, '11, 08:48
Location: Nakkila Finland

Re: Login fails for other users

Postby saptech » Jul 11th, '16, 00:41

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.
Each One Teach One
--------------------------------
Mageia 7 & Debian 10
HP Compaq Elite 8300 | Intel Core i5 | 8gb | 120gb SSD
--------------------------
Mageia 7 & Debian 10
Dell Optiplex 760 | Quad Core | 4gb | 250gb HDD
User avatar
saptech
 
Posts: 234
Joined: Apr 5th, '11, 08:36
Location: STL

Re: Login fails for other users

Postby marja » Jul 11th, '16, 09:23

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.
User avatar
marja
 
Posts: 546
Joined: Aug 22nd, '11, 20:50

Re: Login fails for other users

Postby morgano » Jul 13th, '16, 16:16

Regarding recently created users not being able to log in (after the fix in Bug 17504),
there is work being done on Bug 18930
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1481
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Login fails for other users

Postby ozky » Jul 15th, '16, 13:07

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
Image
Mageia user
User avatar
ozky
 
Posts: 581
Joined: Jul 2nd, '11, 08:48
Location: Nakkila Finland

Re: Login fails for other users

Postby saptech » Jul 18th, '16, 23:57

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.
Each One Teach One
--------------------------------
Mageia 7 & Debian 10
HP Compaq Elite 8300 | Intel Core i5 | 8gb | 120gb SSD
--------------------------
Mageia 7 & Debian 10
Dell Optiplex 760 | Quad Core | 4gb | 250gb HDD
User avatar
saptech
 
Posts: 234
Joined: Apr 5th, '11, 08:36
Location: STL


Return to Testing : Alpha, Beta, RC and Cauldron

Who is online

Users browsing this forum: No registered users and 1 guest