Page 1 of 1

[SOLVED]Passwords reset, invalid/users expired after updates

PostPosted: Apr 22nd, '13, 09:07
by waferhead
After updates about 20 minutes ago, ran into an issue on reboot where passwords (including root) were invalid or reset, and the users accounts were expired, unable to "unexpire" by any of the usual means.

Was able to reset root using "single" boot option, had to delete recreate the users accounts.(use option do NOT delete user directories)

(posting from user account on effected machine, no issues since)

Reasonably sure it was a PAM or related update, but doing due diligence, and posting a super-mini how-to.

Re: Passwords reset, invalid/users expired after updates

PostPosted: Apr 22nd, '13, 10:12
by darr
I have the same. Could you wright exactly what you have done to recreate user because i am not specialist and i affraid deleting my account.

Re: Passwords reset, invalid/users expired after updates

PostPosted: Apr 22nd, '13, 10:29
by waferhead
In my case it was a dumbass move on my part accepting the new config files (rpmnew notification) and not noticing /etc/shadow was one of the files, which blanked all passwords. The correct answer in that particular case is "do nothing" :oops:

Reboot, hit F3 at grub, add single to the end of the command line.
When it comes up, type passwd and change roots password.
Then you can type telinit3 and bring up a multiuser prompt, login and startx, run the user admin tool from there.
(you can probably do it from single user, but not all the usual services are running yet)

In any case, it's trivial in the control panel>system> administer users on your system app:
Make a note of your users id, first/single user is usually 500.
Select the user, hit the delete button and simply DO NOT CHECK the "delete users directories // mail spools boxes.
Only hit OK.

Create a new user with the same ID and it save a possibly long wait while running chown -R ... in the user directories.

Re: [SOLVED]Passwords reset, invalid/users expired after upd

PostPosted: Apr 22nd, '13, 19:40
by ozky
Can those rpmnew files deleted if they causing so many problems ???.

Re: [SOLVED]Passwords reset, invalid/users expired after upd

PostPosted: Apr 22nd, '13, 20:12
by jkerr82508
I think that the package "to blame" was setup. Choosing to use rpmnew when setup is updated is rarely a good idea. In fact, as in this case, it can cause serious problems. There's a discussion on the dev ML, starting with this:
https://ml.mageia.org/l/arc/dev/2013-04/msg00479.html

(You are usually warned not to use rpmnew if you are uncertain as to the effect.)

Jim

Re: [SOLVED]Passwords reset, invalid/users expired after upd

PostPosted: Apr 23rd, '13, 13:02
by Symbioxy
(You are usually warned not to use rpmnew if you are uncertain as to the effect.)

I definitely missed that :shock:
Glad that I made the mistake on a VBox and not on my system!

Re: [SOLVED]Passwords reset, invalid/users expired after upd

PostPosted: Apr 24th, '13, 06:43
by janpihlgren
waferhead

Thanks! Thank You very much for information. It helped me. :D :D :D :D