1833065 Members
2808 Online
110049 Solutions
New Discussion

root passwd

 
SOLVED
Go to solution
himacs
Super Advisor

root passwd

Hi Admins,

I want to change the root passwd of my node is B.11.23

I went single user mode and mounted /usr

passwd root
-but ended up with below error
passwd root
/usr/lib/hpux32/dld.so: Unable to find library 'libxti.so.1'.
Killed

Is ther any other method to change passwd?

We have to boot with OS cd?

suggest on this

regards
himacs
11 REPLIES 11
himacs
Super Advisor

Re: root passwd

Hi Admins,

i changed the passwd using /sbin/passwd command

himacs
Suraj K Sankari
Honored Contributor

Re: root passwd

Hi,

Problem got solved ?

Suraj
himacs
Super Advisor

Re: root passwd

Yes suraj,

I changed the passwd.Initially i was using /usr/bin/passwd command for the same.

Next i used /sbin/passwd command.its worked

Whats the difference between them.

I know root shell is /sbin/sh


regards
himacs

OldSchool
Honored Contributor
Solution

Re: root passwd

the most obvious difference with commands in /sbin, such as "/sbin/passwd", is they don't rely on shared libraries to be available. the other password command does, which can be problematic in single user mode (as you've seen).

that's the same reason people are continually warned *not* to change the default shell on the root account.

There may be other differences as well. If so, I don't know them off the top of my head
Gokul Chandola
Trusted Contributor

Re: root passwd

Hi,

Enjoy the celebration, that you have changed the root password.

I want to say thanks, because you have reply with Solution you found.

Regards,
Gokul Chandola
There is always some scope for improvment.
Dennis Handly
Acclaimed Contributor

Re: root passwd

>I went single user mode and mounted /usr
>/usr/lib/hpux32/dld.so: Unable to find library 'libxti.so.1'.

Hmm, dld.so is under /usr/lib/ and libxti.so.1 should also be there. Is that lib there after you got your system up?
himacs
Super Advisor

Re: root passwd

Hi Denis,

Let me check again since the server is down(planned one :) )


regards
himacs
himacs
Super Advisor

Re: root passwd

Hi denis ,

The libxti.so.1 available .

ll libxti*
lrwxr-xr-x 1 root bin 13 Mar 31 2008 libxti.so -> ./libxti.so.1
lrwxr-xr-x 1 root sys 54 Mar 31 2008 libxti.so.1 -> /opt/star-ncf-prod/ep_patch/usr/lib/hpux32/libxti.so.1


regards
himacs
OldSchool
Honored Contributor

Re: root passwd

Himacs:

"The libxti.so.1 available ...

lrwxr-xr-x 1 root sys 54 Mar 31 2008 libxti.so.1 -> /opt/star-ncf-prod/ep_patch/usr/lib/hpux32/libxti.so.1"

Read what you looked at...it NOT in /usr/lib, that's a LINK to a file on /opt, so unless you mounted /opt as well, it won't find it.

Dennis Handly
Acclaimed Contributor

Re: root passwd

If you list symlinks with -L, it will follow them and give the target properties. In your case it would indicate it wasn't found.
midoone103
Advisor

Re: root passwd

if u wanna connect by using single user this the cmd : shutdown -y 0