1831101 Members
2902 Online
110019 Solutions
New Discussion

Trying to su - root

 
Saleelah Shabbar
Occasional Contributor

Trying to su - root

When trying to su - to root error appears
setting a new password for it cannot be done here
7 REPLIES 7
Bill McNAMARA_1
Honored Contributor

Re: Trying to su - root

check the ~root/.profile

Later,
Bill
It works for me (tm)
V. Nyga
Honored Contributor

Re: Trying to su - root

Hi,

which error?

Volkmar
*** Say 'Thanks' with Kudos ***
Saleelah Shabbar
Occasional Contributor

Re: Trying to su - root

Have looked at the ~root/.profile and nothing would cause this.
The password has expired and it is trying to access the password command and then sending out the above message.
V. Nyga
Honored Contributor

Re: Trying to su - root

Have you tried a 'normal' login at the console instead of su -?

Volkmar
*** Say 'Thanks' with Kudos ***
Robert-Jan Goossens
Honored Contributor

Re: Trying to su - root

Hello,

Take a quick look at following link.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xe1a0663ce855d511abcd0090277a778c,00.html

Is this what's happening on your system ?

Robert-Jan.
Aaron Sheard
Frequent Advisor

Re: Trying to su - root

this is probably not supported by HP and is not for the faint of heart. But when i had that problem (on a trusted node) i simply went into /tcb/files/auth/r

vi the file called 'root'

look for the line that looks like this:

:u_pwd=hiwuwefhwiefDgCZs:
not my real file :)

and remove the encrypted text between the = and the : like:

:u_pwd=:
then run passwd root

it will allow you to set a new, unexpired password.

"uh, hey... did we get a good backup last night?"
Eric Rainer
Occasional Advisor

Re: Trying to su - root

Hello

As mentioned
you cannot su to a user when the password has expired. You need to login ( i.e. on the console or using telnet --)
regards
Eric