passwd segmentation fault

Posted on 2006-06-29
Last Modified: 2008-01-09
When I run passwd on my FC3 server, I get the following error: Segmentation fault
This follows a recent new account creation and there's no indication of what could have brought this about.
I've seen this error as being described as mostly a Solaris issue, or more Solaris related occurrences are mentioned on the web. What I cannot seem to find is anyone having this as a pure passwd failure on FC3. I've tried upgrading passwd using yum, but this did not help.

Any idea what I should upgrade or fix to repair the passwd application?
Question by:andrejonker
  • 2
  • 2
LVL 22

Accepted Solution

pjedmond earned 125 total points
ID: 17012130

1.    I'd be tempted to try manually removing the account that you've recently created. Just delete the bottom line of /etc/passwd. (Make a backup first first!)

2.    Any other commands get a segmentation fault? Particularly useradd usedel etc?

ldd /usr/bin/passwd

gives a list of the so associated with passwd. Any similarities?

3.    Permissions on /etc/passwd and /etc/shadow?

-rw-r--r--    1 root     root         2026 May 28 17:04 /etc/passwd
-r--------    1 root     root         1321 Jun  1 10:25 /etc/shadow

4.    Check /etc/passwd and /etc/shadow fo any obvious corruption.

5.    Disc healthcheck fsck in single mode - Boot to grub, edit(e) the linux line adding 'single' to the end of the line.

6.    Pray.

7.   Restore as much as possible of the file system from backups - You've got loads of thse ;)

8    If nothing obvious is seen from the above suggestions to work on, using the original install discs, you can do an 'upgrade' install.

(   (()
(`-' _\
 ''  ''


Expert Comment

ID: 17015792
Could you please send the callstack.

Author Comment

ID: 17166668

I've been using Linux for many years, but have never been fortunate enough to join the rank of Server Admin so to speak. I guess my Linux skill, or lack thereof thus qualifies me as a mere user. Therefore my inexperience have led me to turn to the Experts Exchange service in frustration.

To be honest, I believe the problem is quite common as I've found many similar error reports using Google. Unfortunately, unlike my other ventures in programming, the Linux community have not been very impressive in the caliber of response I have found to the other reports elswhere on the net.

Paying Experts Exchange have resulted in the above responses, which I guess is good and I can assure you much better than some I've seen. (Some were actually just plainly rude and I feel for the poor souls that had to deal with these when they were in the same situation.)

Now with the above in mind, and the fact that there doesn't really seem to be anyone with the real answer (except perhaps the guys at SUN, who must've gotten their fair share of this issue _read original report_ I will now have to conclude that the only real answer is to make a copy of the data, because the OS is terminally impaired and a complete re-install and configuration build is in fact required.

If anyone wishes to challenge my view, please be my guest, as I'm not planning to spend time doing this just yet, so maybe, just maybe someone can actually tell me they've seen this before and know how to fix it. Because it has all the  probability of a simple version conflict somewhere which happens all the time and accross UNIX flavours.

Thanks to pjedmond and DineshJolania for your responses. I believe they are good, I was just looking for a different answer.

Author Comment

ID: 17166689
Just an amendment to the above. It was not my intention to report a negative view of Experts Exchange. Other responses I refer to were spotted elsewhere on unrelated sites. Hence my reference to Google. Please keep this in mind and read above in most positive fashion.
LVL 22

Expert Comment

ID: 17168662
As you've discovered, this type of error can occur as a result of numerous possible problems. You will note that I've asked Qs to try and focus a little more on the problem. Unfortually with some of the more complex problems, the 'fix' is complex, and asking most people to try and attempt it is unrealistic. Plus for the experts to understand exactly what you see and try is impossible as we do not have access to the system in question, therefore the best we can hope to provide is some guidance.

Ultimately, backups may be the only solution. That's the way with Windows as well as Linux and other operating systems.

(   (()
(`-' _\
 ''  ''


Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux tcp ports listening for testing 4 63
Video Streaming 6 73
Linux/Apache File Ownership/Permissions 1 64 default error log 1 28
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will giveā€¦
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question