ws11
asked on
CentOS 6 Password
I have a server with CentOS 6 and the password needs to be reset. I have tried to use passwd but I get avc: denied { read } message. I don't know very much at all regarding linux so I am struggling with what to do.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
grep username /etc/passwd
?
?
ASKER
Sorry not following you. I was using the host name as the username so I assume that is the problem.
I assume so as well ...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It did not appear to need all that but I only have logged in once. There was no request to change the password. At this time everything is working fine.
Congrats!
ASKER
It worked for me and the other suggestions did not directly relate but did help. All points are given to the other person.
you are in runlevel 1 (Single User) and you have SELinux enabled, right?
If so, you've hit a SELinux bug which prevents "passwd" from running in Single User mode when SELinux is enabled.
The only workaround that I'm aware of is adding "selinux=off" to the GRUB kernel boot parameter line, just like you added the "S" for Single User mode.
Besides that, you should upgrade to selinux-policy-3.7.19-58.e