Bug 18641 - Password editing function broken and expired users with userdrake ('Invalid contents of lock `/etc/shadow.lock'')
Summary: Password editing function broken and expired users with userdrake ('Invalid c...
Status: RESOLVED DUPLICATE of bug 17504
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords: 6dev1
Depends on:
Blocks:
 
Reported: 2016-06-06 21:36 CEST by Marja Van Waes
Modified: 2016-06-21 22:14 CEST (History)
12 users (show)

See Also:
Source RPM: userdrake-2.11-1.mga6
CVE:
Status comment:


Attachments

Description Marja Van Waes 2016-06-06 21:36:08 CEST
+++ This bug was initially created as a clone of Bug #16668 +++

See https://bugs.mageia.org/show_bug.cgi?id=16668#c29
and https://bugs.mageia.org/show_bug.cgi?id=16668#c30

Changing the password of a user, or adding a new user results in the error about invalid contents of lock /etc/shadow/lock again.

This was bug 16668, which was fixed with 

     libuser-0.62-3.mga6

but the same functionality is broken again, which was first reported 11 days after that release was replaced with

     libuser-0.62-4.mga6 

Locally building libuser-0.62-3.mga6 and locally downgrading to 
libuser-0.62-3.mga6 & lib64user1-0.62-3.mga6, fixes it: adding a user with userdrake works fine again.


It is beyond my understanding how in the world the only real difference between version 3.mga6 and 4.mga6:

    Requires:       coreutils
    Requires(pre):  coreutils

could cause this :-(

But maybe something entirely different is going on?
Marja Van Waes 2016-06-06 21:36:49 CEST

CC: (none) => pterjan
Assignee: bugsquad => thierry.vignaud

Marja Van Waes 2016-06-06 21:39:13 CEST

Depends on: 16668 => (none)

Comment 1 Marja Van Waes 2016-06-07 12:30:00 CEST
(In reply to Marja van Waes from comment #0)

> 
> But maybe something entirely different is going on?

Indeed :-(

With the same packages on my system as last night (I had only installed networkmanager + its dependencies and later removed that exact set of packages), so with libuser-0.62-3.mga6 still installed, the same problem is back.

So there's no regression in libuser-0.62-4.mga6, but there's another problem.

As before, adduserdrake works fine, only userdrake does not.

Source RPM: libuser-0.62-4.mga6 => userdrake-2.11-1.mga6

Comment 2 Marja Van Waes 2016-06-07 15:03:24 CEST
Upgrading again to 0.62-4.mga6 (with a bunch of other updates): userdrake still _fails_.

Downgrading again to 0.62-3.mga6: userdrake works _fine_ again, started twice as root and 1x as user + giving root password

Upgrading to 0.62-4.mga6 again: it now still works _fine_ (also 2x started as root and 1x as user)

I haven't rebooted in between.

In case reboots can matter: I had rebooted before seeing today that it no longer worked with libuser-0.62-3.mga6

(and, probably unrelated: I had to use an equivalent of "Alt+SysRq+E" because boot hung on something - haven't figured out what that was)
Comment 3 Philippe Makowski 2016-06-07 23:00:24 CEST
can you redo this and each time look at /etc/shadow ?
Comment 4 Marja Van Waes 2016-06-08 14:01:02 CEST
(In reply to Philippe Makowski from comment #3)
> can you redo this and each time look at /etc/shadow ?

I had expected the bug to be back after rebooting, but userdrake still works fine now. I'll try on different cauldrons later and, even if i cannot imagine installing and/or uninstalling networkmanager had anything to do with it, will try that again, too

@ Doug

Do you still have a problem when trying to change a password?

If so, what is the output of 

 ls -al /etc/ | grep shadow
Comment 5 Marja Van Waes 2016-06-15 10:01:10 CEST
Almost a week later, I assume Doug Laidlaw can no longer reproduce this issue, either.

Closing as "Worksforme", please reopen if it occurs again.

Status: NEW => RESOLVED
Resolution: (none) => WORKSFORME

Comment 6 Marja Van Waes 2016-06-21 22:14:49 CEST
(In reply to Philippe Makowski from comment #3)
> can you redo this and each time look at /etc/shadow ?

With the classical 64bit iso that was available for QA this afternoon, after installing and rebooting into the fresh install, the first then created user was expired again.

However, bug 17504 already exists for that.

*** This bug has been marked as a duplicate of bug 17504 ***

Resolution: WORKSFORME => DUPLICATE


Note You need to log in before you can comment on or make changes to this bug.