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.
Linux

Avatar of undefined
Last Comment
ws11

8/22/2022 - Mon
woolmilkporc

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
ws11

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
woolmilkporc

grep username /etc/passwd

?
ws11

ASKER
Sorry not following you.  I was using the host name as the username so I assume that is the problem.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
woolmilkporc

I assume so as well ...
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
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.
woolmilkporc

Congrats!
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
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.