Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: OpenBSD, Solaris, Red Hat, Ubuntu, OS X, HP-UX, Tru64
Posts: 20
Rep:
passwd hangs
Greetings,
I'm running a Red Hat Linux 3.2.3-52 on a 2.4.21-32.0.1 ELsmp kernel.
We have a couple of Red Hat systems that, when you try to change your password, just hangs. So far the admins here have rebooted the box and it's resolved the problem. I had them hold off last time while I checked in to it but they needed to get someone in to the system so they rebooted.
Now the problem isn't going away with a reboot.
The pam files are dated Jun 4 2004 with a couple of others with an older 2003 date.
Distribution: OpenBSD, Solaris, Red Hat, Ubuntu, OS X, HP-UX, Tru64
Posts: 20
Original Poster
Rep:
Ahh, that was what I was looking for. I'm a Sun admin as was looking for a Linux tool that worked like ptrace. Thanks.
Oh and the problem was /etc/.pwd.lock. I saw the permission denied errors in the strace output and removed the file which fixed the problem. Weird that a file dated Jun 25, 2004 would cause intermittant problems since passwd changes would occur with no problem most of the time, just that once in a while it'd hang.
Anyway, thanks again. Sticking strace in a prominant place.
Its not that the program was not able to write over it.
But the file was a lock and a lock has to be respected by any program till the lock is cleared by the command that created it.
Distribution: OpenBSD, Solaris, Red Hat, Ubuntu, OS X, HP-UX, Tru64
Posts: 20
Original Poster
Rep:
Quote:
Originally posted by zulfilee Its not that the program was not able to write over it.
But the file was a lock and a lock has to be respected by any program till the lock is cleared by the command that created it.
Cheers
Z
Ok, that's a good point that I hadn't thought of and makes sense. So someone started passwd and the session died leaving the lock file.
Question then. Since it had a date of almost a year ago, why would any further passwd attempts work? It seemed to be either intermittent or tied to how long the system was up since rebooting seemed to resolve the problem up until this last incident.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.