- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: help: about root account locked
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 03:38 PM
05-19-2004 03:38 PM
root was locked today ,
i use this way to unlock but fail:
1.boot to single user mode,
2.mount -a
3./usr/lbin/modprpw -k root
4.vi /tcb/files/auth/r/root
and change
:u_pwd=:
5.reboot
now i can't get into single user mode
because wrong passwd,
how should i do?
thanks everyone
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 03:46 PM
05-19-2004 03:46 PM
Re: help: about root account locked
i do not think u need to boot to single user mode to unlock root.
# /usr/lbin/modprpw -k root
would have done that.
boot to single user mode, if you have totally forgotten your root password.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 03:50 PM
05-19-2004 03:50 PM
Re: help: about root account locked
All you have to do is reboot the machine and go into single user mod and change the password. That's all
Thanks & Regards
SRi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 04:14 PM
05-19-2004 04:14 PM
Re: help: about root account locked
Also check for -t lockfiles under /tcb
# find /tcb -name \*-t
If lockfiles are found rename or delete the file(s) and see if this resolves your problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 04:16 PM
05-19-2004 04:16 PM
Re: help: about root account locked
1) Boot to single user mode
2) # mount -a
3) # /usr/lbin/tsconvert -r (this will revert your system to a non-trusted system)
4) # vi /etc/passwd (remove root's encrypted password)
5) # passwd (set a new password for root)
6) # /usr/lbin/tsconvert (return to trusted system).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 04:30 PM
05-19-2004 04:30 PM
Re: help: about root account locked
1) Boot to single-user mode or reboot the system
2) Interrupt the boot process when you see the prompt, "Press any key to stop in 10 seconds"
3) Boot from the boot device and answer 'Y' to interact from IPL or type: 'bo pri ISL'
4) You will be at an 'ISL>' prompt and you will need to type: 'hpux -is'
5) The system will be booted into single-user mode and you will be logged in as "root".
6) Change the root password using the 'passwd' command and reboot.
Good luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 04:31 PM
05-19-2004 04:31 PM
SolutionAre you prompted for password when you try to get into single user mode ?
If yes then only you have the option of booting from the supportCD and run rescue system and mount the / and /usr filesystem on temporary directories and revert back the changes you have made.
Regs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 06:12 PM
05-19-2004 06:12 PM
Re: help: about root account locked
i run rescue system ,
now i in shell
but i can't find anythind in /usr/lbin
,
and use bdf,
only / in mounted
what should i do next?
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 06:24 PM
05-19-2004 06:24 PM
Re: help: about root account locked
# /sbin/mount /dev/vg00/lvol7 /usr
# /usr/sbin/passwd
change your password
and then either restart the server or use init 3, but i go for a normal restart.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 06:24 PM
05-19-2004 06:24 PM
Re: help: about root account locked
# /sbin/mount /dev/vg00/lvol7 /usr
# /usr/sbin/passwd
change your password
and then either restart the server or use init 3, but i go for a normal restart.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 06:43 PM
05-19-2004 06:43 PM
Re: help: about root account locked
Go to /etc/fstab, look which lvol is for what filesystem. Then mount the filesystem /usr and /var.
#mount /dev/vg00/lvolx /usr
#mount /dev/vg00/lvolx /var
#passwd
New Password:
Confirm Password:
This should work,.
All the best.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 09:48 PM
05-19-2004 09:48 PM
Re: help: about root account locked
i can't mount /dev/vg00/lvol7 /usr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 09:53 PM
05-19-2004 09:53 PM
Re: help: about root account locked
check /etc/fstab:
# /sbin/cat /etc/fstab
look for which logical volume is /usr mounted to:
# /sbin/mount
and do the necessary changes.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 11:18 PM
05-19-2004 11:18 PM
Re: help: about root account locked
1. Boot to the single user mode using "hpux -is" at ISL prompt.
2. You will the hash prompt directly.
3. cat /etc/fstab, look for line containing /usr and see which logical volume it is using.
4. Let us consider it as /dev/lvol6 (whatever you have)
5. mount /dev/lvol6 /usr
6./usr/lbin/modprpw -k root
7.reboot
See if that works.
All the best.