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

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....

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

Postby waferhead » Apr 22nd, '13, 09:07

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.
Last edited by waferhead on Apr 22nd, '13, 10:32, edited 1 time in total.
waferhead
 
Posts: 171
Joined: Jun 11th, '11, 06:36

Re: Passwords reset, invalid/users expired after updates

Postby darr » Apr 22nd, '13, 10:12

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.
darr
 
Posts: 3
Joined: Oct 16th, '12, 08:19

Re: Passwords reset, invalid/users expired after updates

Postby waferhead » Apr 22nd, '13, 10:29

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.
waferhead
 
Posts: 171
Joined: Jun 11th, '11, 06:36

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

Postby ozky » Apr 22nd, '13, 19:40

Can those rpmnew files deleted if they causing so many problems ???.
Image
Mageia user
User avatar
ozky
 
Posts: 581
Joined: Jul 2nd, '11, 08:48
Location: Nakkila Finland

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

Postby jkerr82508 » Apr 22nd, '13, 20:12

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
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

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

Postby Symbioxy » Apr 23rd, '13, 13:02

(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!
Symbioxy
 
Posts: 26
Joined: May 21st, '12, 17:41
Location: Grenoble, France

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

Postby janpihlgren » Apr 24th, '13, 06:43

waferhead

Thanks! Thank You very much for information. It helped me. :D :D :D :D
User avatar
janpihlgren
 
Posts: 294
Joined: Mar 30th, '11, 12:23
Location: Marsta, Sweden


Return to Testing : Alpha, Beta, RC and Cauldron

Who is online

Users browsing this forum: No registered users and 1 guest

cron