Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
passwd: Critical error - immediate abort
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
humbletech99
Veteran
Veteran


Joined: 26 May 2005
Posts: 1229
Location: London

PostPosted: Sun Feb 11, 2007 10:07 pm    Post subject: passwd: Critical error - immediate abort Reply with quote

I have just discovered a very unusual thing. Trying to change any password on my gentoo laptop is now not possible using the standard passwd utility. It seems that every time I try to type this on the command line even as root it quits with an error that doesn't tell what the problem is.
Code:
# passwd
passwd: Critical error - immediate abort

The permissions on the passwd and shadow files is as follows
Code:
# ll /etc/passwd /etc/shadow
-rw-r--r-- 1 root root 2219 Feb 11 21:53 /etc/passwd
-rw------- 1 root root 1000 Feb 11 21:56 /etc/shadow

An strace seems to indicate that the last thing that the passwd utility does is to open /etc/shadow and then do some seeking and then close it and write the error message.

I have found references to this all over the internet, mainly old redhat. The only solution I could see was to make sure the source was compiled with the right dict reference or something but I can't see how this could suddenly be a problem.

The shadow file seems to be in order having checked it out, as does the passwd file. Both have what look like fully functional lines for the root user and my regular user.
The last thing I did before trying to change the passwd of a new test user was to run unshadow from jtr. I guess this could have corrupted the original files but they look perfectly intact so my guess is there may be some file lock on /etc/shadow so I did an lsof /etc/shadow but this revealed nothing. I can still add and delete users using useradd and userdel but I can't set their passwords.

Any ideas how to check out if there is a file lock or how to fix this problem?
_________________
The Human Equation:

value(geeks) > value(mundanes)
Back to top
View user's profile Send private message
poly_poly-man
Advocate
Advocate


Joined: 06 Dec 2006
Posts: 2477
Location: RIT, NY, US

PostPosted: Mon Feb 12, 2007 4:06 am    Post subject: Reply with quote

Odd.

Try remerging shadow, the password management package.

hih,
poly-p man
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5956

PostPosted: Mon Feb 12, 2007 5:36 am    Post subject: Reply with quote

what does /etc/pam.d/passwd look like?
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
humbletech99
Veteran
Veteran


Joined: 26 May 2005
Posts: 1229
Location: London

PostPosted: Mon Feb 12, 2007 9:54 am    Post subject: Reply with quote

I did try re-emerging shadow before posting but it didn't make any difference.

Here is the contents of the the pam for passwd
Code:
$ sudo cat /etc/pam.d/passwd
Password:
#%PAM-1.0

auth       include      system-auth
account    include      system-auth
password   include      system-auth

_________________
The Human Equation:

value(geeks) > value(mundanes)
Back to top
View user's profile Send private message
jmcphe
n00b
n00b


Joined: 28 Mar 2003
Posts: 7

PostPosted: Thu Oct 04, 2007 10:49 pm    Post subject: solved for me Reply with quote

I solved this issue just now by re emerging cracklib
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 10062
Location: almost Mile High in the USA

PostPosted: Fri Oct 05, 2007 4:06 pm    Post subject: Reply with quote

Just as a word of warning, if this happens randomly out in the blue and you know you just didn't do something to break it, do make sure you do intrusion detection, it's a sort of early warning system in the password system - the auth system noticed something went awry and here's your warning.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
pacho2
Developer
Developer


Joined: 04 Mar 2005
Posts: 2599
Location: Oviedo, Spain

PostPosted: Sun Oct 07, 2007 6:35 pm    Post subject: Reply with quote

Fixed after
Code:
emerge -1 cracklib shadow


I have sent it to:
https://bugs.gentoo.org/show_bug.cgi?id=195017

Maybe a message should be added suggesting this solution if the error appears

Thanks
Back to top
View user's profile Send private message
BizarroJack
n00b
n00b


Joined: 04 Dec 2003
Posts: 29

PostPosted: Tue Oct 09, 2007 2:52 am    Post subject: Reply with quote

eccerr0r wrote:
Just as a word of warning, if this happens randomly out in the blue and you know you just didn't do something to break it, do make sure you do intrusion detection, it's a sort of early warning system in the password system - the auth system noticed something went awry and here's your warning.


What is this an indication of? It doesn't say anything meaningful (unless you've read the code, I guess)
_________________
Jack
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 10062
Location: almost Mile High in the USA

PostPosted: Tue Oct 09, 2007 6:59 am    Post subject: Reply with quote

I ran across this error quite a long while ago but forgot the details. I do recall hacking the passwd or shadow file with vi at one point thinking that it's 'fine' to do it, and possibly deleting some of the apparently temporary files. It then gave me that error till I reverted everything back the way it was, wasn't successful trying to edit the files back.

It's not much of intrusion protection but it screamed at me for mucking with the files without using vipw...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
tam
Guru
Guru


Joined: 04 Mar 2003
Posts: 569

PostPosted: Wed Oct 10, 2007 1:16 pm    Post subject: Reply with quote

pacho2 wrote:
Fixed after
Code:
emerge -1 cracklib shadow



Thanks. Also helped me.
_________________
http://tam.belchenstuermer.de/
Back to top
View user's profile Send private message
Simonheld
Apprentice
Apprentice


Joined: 20 Nov 2005
Posts: 151
Location: Deepest Black Bavaria

PostPosted: Thu Oct 18, 2007 8:47 am    Post subject: Reply with quote

mir auch ! vielen dank!
Back to top
View user's profile Send private message
only2sea
n00b
n00b


Joined: 14 Aug 2006
Posts: 23
Location: Republic of Korea

PostPosted: Fri Oct 19, 2007 1:23 pm    Post subject: Reply with quote

Thanks a lot.
Back to top
View user's profile Send private message
romandas
n00b
n00b


Joined: 20 Feb 2005
Posts: 66
Location: Germany

PostPosted: Sat Oct 20, 2007 3:24 pm    Post subject: Reply with quote

Thanks! This helped me out quite a bit.
Back to top
View user's profile Send private message
pteppic
l33t
l33t


Joined: 28 Nov 2005
Posts: 781

PostPosted: Tue Jan 22, 2008 12:16 am    Post subject: Reply with quote

I know it's almost thread necromancy, but worked for me too. Maybe I should change passwords more often...
_________________
Current Project Thread (myth2avi)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum