Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Security
Reload this Page passwd: Critical error - immediate abort
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Security Discussion about keeping your machines secure, and the crackers out.

Closed Thread
 
Thread Tools Display Modes
Old 02-11-2007   #1 (permalink)
humbletech99
Linux Newbie
 
humbletech99's Avatar
 
Join Date: Nov 2005
Posts: 209
passwd: Critical error - immediate abort

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?
humbletech99 is offline  
Old 12-12-2007   #2 (permalink)
chrismear
Just Joined!
 
Join Date: Dec 2007
Posts: 1
I had the same problem by the looks of it, and found this blog post about it:

passwd is messed up?!?! | Uno-Code

Apparently there's a bug with cracklib, and you can work around it by remerging cracklib then shadow as a one-shot like this:

Code:
emerge -1 cracklib shadow
It worked for me, so might want to give it a try.
chrismear is offline  
Old 12-12-2007   #3 (permalink)
humbletech99
Linux Newbie
 
humbletech99's Avatar
 
Join Date: Nov 2005
Posts: 209
I fixed this at the time, I think I did re-emerge it...
__________________
The Human Equation:

value(geeks) > value(mundanes)
humbletech99 is offline  
Old 04-22-2008   #4 (permalink)
ado8
Just Joined!
 
Join Date: Apr 2008
Posts: 1
If you do not want to use cracklib you can just disable it, what solves the problem too:

cat /etc/pam.d/system-auth
#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth required /lib/security/$ISA/pam_env.so
auth sufficient /lib/security/$ISA/pam_unix.so likeauth nullok
auth required /lib/security/$ISA/pam_deny.so

account required /lib/security/$ISA/pam_unix.so
account sufficient /lib/security/$ISA/pam_succeed_if.so uid < 100 quiet
account required /lib/security/$ISA/pam_permit.so

#password requisite /lib/security/$ISA/pam_cracklib.so retry=3
password required /lib/security/$ISA/pam_unix.so
password sufficient /lib/security/$ISA/pam_unix.so nullok use_authtok md5 shadow
password required /lib/security/$ISA/pam_deny.so

session required /lib/security/$ISA/pam_limits.so
session required /lib/security/$ISA/pam_unix.so
ado8 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 04:42 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0