Link to home
Start Free TrialLog in
Avatar of ws11
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.
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Hi,

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.el6 or later, to prevent this in the future.
SOLUTION
Avatar of ws11
ws11

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
grep username /etc/passwd

?
Avatar of ws11
ws11

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
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ws11

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!
Avatar of ws11

ASKER

It worked for me and the other suggestions did not directly relate but did help.  All points are given to the other person.