Operating System - HP-UX
1756556 Members
2159 Online
108848 Solutions
New Discussion юеВ

Re: change root password in singel user moad

 
sandeepd
Occasional Advisor

change root password in singel user moad

i am working with hupx11i.I have try to change root passwd in singel user moad it give me following error

Option not available using /sbin/passwd
Must invoke /bin/passwd to use option.

Thanks for replay.

Sandeep
5 REPLIES 5
sujit kumar singh
Honored Contributor

Re: change root password in singel user moad

hi


please do the following in the single user mode.


what does teh O/P of the #mount

command show? is /usr mounted?

#for i in /dev/vg00/lvol*
>do
>fsck /dev/vg00/lvol*
>done
#mount -a

then do
#passwd


this shall help you.


you are facing this as /usr Fileystem maigt not be mounted and you will require /usr/sbin/passwd to change the root passwd.

regards
sujit
Robert-Jan Goossens_1
Honored Contributor

Re: change root password in singel user moad

Hi Sandeep,

Did you mount your filesystems in single-user mode?

# mount -a
# passwd root
or
# vi /etc/passwd
and remove the password string for root.

Don't forget to completely reboot your system after changing the passwd in single-user mode!

Regards,
Robert-Jan
Johnson Punniyalingam
Honored Contributor

Re: change root password in singel user moad

Hi Sandeep,

When you login into single User mode , some File system will not be mounted,

Either you can try,

# mount -a
(will mount all the File system) than proceed to change passwd for root.

or

as mentioned in post
>>Option not available using /sbin/passwd
Must invoke /bin/passwd to use option<<

so use has below command to change

#/bin/passwd root

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
sandeepd
Occasional Advisor

Re: change root password in singel user moad

problem slove

thanks for help
sujit kumar singh
Honored Contributor

Re: change root password in singel user moad

Hi Sandeep,


Once in teh single user mode you always need to mount the /usr file system as all the commands are there in the path /usr/bin and /usr/sbin and then you can use the command passwd to do that simply and do a reboot by shutdown -ry 00.


this is better as the system shall restart naturally and also you shall be able to check that the changed root password sustains reboot.


please find the following link and please have sometime to assign points to the responses made for you question.

This always helps you get the bette responses.


you shall need to reopen the thread if you (the author) wish to do so by clicking just in the bottom of the discussion the button "Reopen Thread>>".


http://forums1.itrc.hp.com/service/forums/helptips.do?#33


regards
sujit