1831677 Members
2066 Online
110029 Solutions
New Discussion

Re: root passwd

 
Nobody's Hero
Valued Contributor

root passwd

OK I am running Linux RH9.
When I log in as myself and su - to root, it will not acept the passwd. Ever seen this before? I havn't. Cap lock off, I know the password is correct. Any ideas how I can hack the root passwd. Kind of an emergency.

Not sure why su to root isn't aaccpeting the password.
UNIX IS GOOD
6 REPLIES 6
Rick Garland
Honored Contributor

Re: root passwd

Check the /etc/pam.d/su file.

Are you logging in as a different user? Who may not be in a particular group? Example, the wheel group.

Nobody's Hero
Valued Contributor

Re: root passwd

SU file perms are good in both locations.

I am logging in as myself in users:root.

Crazy thing. I've never seen this b4.
Tried to rlogin or ssh from another connection. The box is tight as a drum. Even ftp is down. Very secure box without the linux firewall pieces.
UNIX IS GOOD
Ivan Ferreira
Honored Contributor

Re: root passwd

Is not the permissions that you should chek, but the configuration.

Would help if you post the content of that file, if you see a pam_wheel line, then the user must be in the whell group to be able to use root.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Bejoy C Alias
Respected Contributor

Re: root passwd

If the below line in /etc/pam.d/su is not commented out , then only the users in wheel group are allowed to do su.

#auth required /lib/security/$ISA/pam_wheel.so use_uid

If there is no # simbol , then u must be in wheel group to do su . Check 'id' after logging in
Be Always Joy ......
Steven E. Protter
Exalted Contributor

Re: root passwd

You should be able to boot off of any RH9 emergency disk. You can install RH9 on another box and create the book cd during the installation.

This should enable you to boot the box, log on and null out the password entry for root in /etc/shadow

don't leave it alone for long, you might get hacked.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Tvs
Regular Advisor

Re: root passwd

try to add u r username is sugroup

(if sugroup is there)