- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How do I change root password
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
01-14-2003 02:58 AM
01-14-2003 02:58 AM
How do I change root password
We have implemented a tool so yu don't need to know the actual root-password anymore. This makes we generate a new root-password every month, write it down and put it in a safe.
But, what if we make a typo ? Of course you don't as you double check twice, but just in case. How do I reset my root-password ?
I know I have to boot of cdrom, mount the root-disk. But we have LVM !! how do I mount in the correct disk, make sure that when I boot after the change, my boot-disk (mirrored) are still fine to boot?
Can anyone help ?
Best Regs David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 03:01 AM
01-14-2003 03:01 AM
Re: How do I change root password
boot in single user mode (interrupt boot and hpux -is)
your are in superuser mode use passwd to set a new password.
Regards,
Jerome
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 03:06 AM
01-14-2003 03:06 AM
Re: How do I change root password
do following:
?? switch off/on the system
?? break bootprocess [Esc]
?? boot to ISL
>boot pri isl
interact with IPL? YES
?? boot into SingleUser
ISL> hpux -is
?? re-set the root password
# passwd
new password:
repeat new password:
?? the reboot the system
# cd /
# shutdown -r 0
Best regards ...
Armin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 03:10 AM
01-14-2003 03:10 AM
Re: How do I change root password
I am sorry, but we have a secured system. So the root-password is needed to login to single user mode :(
So we have to login using a CDROM
Regs David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 03:19 AM
01-14-2003 03:19 AM
Re: How do I change root password
CD disk you're talking about is support/recovery CD (maybe OS installation CD). You boot from it, then follow recommendations displayed and choosing right options.
PDC: bo alt (if alt is CD-ROMs path)
interact isl - no
menu will be displayed, you choose 'recover system', then you're exiting recovery shell, issue commands to mount root disks (they will be displayed) and then editing passwrd file or issuing 'passwd' command.
I would recommend you to try to do all these on non-production sytem first :o)
Eugeny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 03:26 AM
01-14-2003 03:26 AM
Re: How do I change root password
Do you know the old password? If so just use the passwd command.
If not, vi the /tcb/auth/files/r/root file
remove the hash code between = and : , i.e..
:u_pwd=fBX819fJCbb2w::u_pwd=:
Then use the passwd command.
Becareful editing that file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 03:30 AM
01-14-2003 03:30 AM
Re: How do I change root password
if the procedure of "Eugeny Brychkov" does not work, try to unconvert the trused system first by:
# /etc/tsconvert -r
# cd /.secure
# rm -r *
# cd /
# rmdir .secure
and then use the command:
# passwd
Regards ...
Armin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 04:15 AM
01-14-2003 04:15 AM
Re: How do I change root password
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 11:51 AM
01-15-2003 11:51 AM
Re: How do I change root password
root capabilities and you can logon using that id, then use
SAM to change the 'root' userid password. Of course
you would keep this userid
and password information
restricted to the System Admin.
Andre'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 12:24 PM
01-15-2003 12:24 PM
Re: How do I change root password
Use "sudo". Very easy to setup too.
What it will do is that everytime you run a command with root access use the command with sudo. In the list of sudoers, you can list your name and specify the type of access that you want to have or provide.
This way you can allow limited root access also to other users at work.
You can change your root password also, since you use only your id's password to run sudo.
-Anil