Bug 65577
Summary: | useradd: unable to open password file | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Joe Acosta <josepha48> |
Component: | shadow-utils | Assignee: | Nalin Dahyabhai <nalin> |
Status: | CLOSED WORKSFORME | QA Contact: | David Lawrence <dkl> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 7.3 | CC: | wtogami |
Target Milestone: | --- | Keywords: | Security |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2002-12-18 16:59:19 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Joe Acosta
2002-05-27 21:07:32 UTC
Someone else reported in Bug 65505 that his passwd (or related files) has been somehow corrupted, causing redhat-config-users to crash. Does this cause permanent corruption in /etc/passwd (even after reboot)? It is still 'locked' after a reboot. This affects useradd, adduser, redhat-usrs-conf, and any programs that seems to change the /etc/passwd that I have tried. (not sure what else) I'd edit the file manually but not sure how to regenerate the /etc/shadow after changing the password file. I know on Sun I have to do that. This also affects vipw as well. vipw: can't unlock /etc/passwd: Operation not permitted (your changes are still in /etc/ptmp) then trying to execute vipw again root># vipw vipw: the password file is busy (/etc/ptmp present) This needs to be escalated. As it turns out I cannot add users to the system with the state that this is in. I have other boxes that I am supposed to upgrade. I cannot rm -f /etc/passwd I cannot edit it with vi, I cannot copy a file over it even in single user mode (init 1) as root with the drives mouted rw, evern after multiple reboots. I would seriously like to know what is going on with this. I don't understand why this is locked. I have deleted the /etc/ptmp file as well as the /etc/.pwd.lock file, yet even using vi or echo <data> >> /etc/passwd will not work as root. I have never seen an issue like this on ANY unix system and if this cannot be resolved soon, I will have to rebuild the system eithe rwith 7.2 or some other distro where this does not exist. We've never been able to recreate this. It appears that since things like cat fail you got something like a hardware fault (eg that block on the disk being bad) or that someone malicious cracked your box and set the password file immutable with chattr |