LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-17-2002, 03:11 AM   #1
leihsun
Member
 
Registered: Jan 2002
Location: taipei
Posts: 39

Rep: Reputation: 15
can't passwd


hi can you help me regarding my problem .... i think that you know this problem
to and im hoping that you have the answer ....:

Every time I try to change passwords, this error appears..

[root@mail /root]# passwd
New UNIX password:
Retype new UNIX password:
passwd: Critical error - immediate abort

and also in login

login(pam_unix)[230]:session opened for user root by LOGIN(uid=0)
 
Old 06-17-2002, 04:21 AM   #2
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
What is the distribution and version number you are using?

Check to see that you haven't run out of disk space.

Did you su to root and try to change the password?
 
Old 06-17-2002, 05:12 AM   #3
leihsun
Member
 
Registered: Jan 2002
Location: taipei
Posts: 39

Original Poster
Rep: Reputation: 15
I use RedHat 7.1

I am sure I haven't run out of disk space.

I am login as root and if I change passwd, the system also shows "Critical error - immediate abort"
 
Old 06-17-2002, 05:29 AM   #4
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
`may be your root partition "/" is full
 
Old 06-17-2002, 07:55 PM   #5
leihsun
Member
 
Registered: Jan 2002
Location: taipei
Posts: 39

Original Poster
Rep: Reputation: 15
Can't be. I only use about 50% of hard disk.
 
Old 06-18-2002, 02:25 AM   #6
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
not your harddisk your "/" partition
 
Old 06-18-2002, 02:38 AM   #7
leihsun
Member
 
Registered: Jan 2002
Location: taipei
Posts: 39

Original Poster
Rep: Reputation: 15
sorry, I mean / not hard disk, the usage of / is about 50%, and only 100M partitioned for /.
 
Old 06-18-2002, 02:47 AM   #8
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
This is the main reason why you get the error
 
Old 06-18-2002, 03:23 AM   #9
leihsun
Member
 
Registered: Jan 2002
Location: taipei
Posts: 39

Original Poster
Rep: Reputation: 15
sorry what reason? My / is not full. Still is the problem?
 
Old 06-18-2002, 04:20 AM   #10
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
Never came across this kind of problem
 
Old 06-18-2002, 04:23 AM   #11
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Well it looks like an irritating problem. Maybe running passwd with strace will help you find out where it's going wrong. Try running:

strace -o trace.out passwd

Then scan through the trace.out file and find out where it's stopping. If you don't know what all that output is maybe just posting the bit with the error will get someone to help you out.

Just another thing:
The trace file will contain your password in clear text. So if you post parts of the file then blank out your password or skip that part.

Last edited by Mik; 06-18-2002 at 04:41 AM.
 
Old 06-18-2002, 04:24 AM   #12
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
do your /etc/pam.d dir has passwd file
 
Old 06-18-2002, 04:27 AM   #13
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
I cam upon a website which had a user forum and one of the person had asked the same questions.

the answer given was that this happens when some one hacks into your system
 
Old 06-18-2002, 05:24 AM   #14
leihsun
Member
 
Registered: Jan 2002
Location: taipei
Posts: 39

Original Poster
Rep: Reputation: 15
sorry, i didn't figure out what is my system. I built an embedded system. I mean, I use fdisk, mke2fs, and copy needed files. So I guess I haven't copy completely. And now here comes the problems. If my guess is right, then which files is needed by password system? If I am wrong, then what is going on to my system?
 
Old 06-18-2002, 05:49 AM   #15
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Well it first checks the file /etc/nsswitch.conf to find out where it should look to retrieve the password. If it's set to files then it will look for the file /etc/passwd if you are also using shadow passwords then you will need the /etc/shadow file.

As far as I know those are the main ones you need. If you've got all those then I'd really try an strace. It's not that much work and it will tell you exactly where it goes wrong. Saves you the trouble of guessing what may be missing.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
/etc/passwd XaViaR Linux - General 1 06-13-2005 10:12 AM
passwd romel Linux - Security 1 04-25-2004 01:12 AM
about passwd jnzhang Linux - General 7 07-08-2003 04:32 PM
/etc/passwd help debdas Linux - General 3 05-09-2003 01:28 PM
passwd Winter Linux - Security 2 05-01-2002 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration