- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- i dont have ROOT user on HP-UX
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
08-29-2006 04:43 AM
08-29-2006 04:43 AM
I dont have ROOT user under my
cd /home
how can i get that now i am using..
#su -
to become root user and how to set password to user ID ROOT
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2006 04:51 AM
08-29-2006 04:51 AM
Re: i dont have ROOT user on HP-UX
In any event, if you have lost root's password then you will need to bring the machine up in single-user mode by interrupting the boot process at the console and entering "boot pri" and responding "Y" to "Interact with IPL/ISL?" At that point you enter "hpux -is" and that will bring up up with only / mounted as root.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2006 04:52 AM
08-29-2006 04:52 AM
SolutionIf you want to change it, you must edit the /etc/passwd file, create the home directory where ever you want it to be, and then copy root's dot files (.profile, .ssh, etc.) to the new location.
To set the password, one you log in you just execute:
# passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2006 04:55 AM
08-29-2006 04:55 AM
Re: i dont have ROOT user on HP-UX
I have root's home directory set to /home on all of my systems. I can still boot up in single-user mode with no problem. I have never had anything bad happen because of it. If I need something from the home directory, I'll mount /home.
If I screw up and create a big file in root's home directory, I would much rather fill up /home than /.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2006 04:55 AM
08-29-2006 04:55 AM
Re: i dont have ROOT user on HP-UX
su to root (not su -)
edit /etc/passwd and change the home area to be "/" and not "/home"
also ensure that your shell is "/sbin/sh".
Some clever soul where I now work changed the shell to be bash and the home to /home/root - not a great mix for single user mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2006 05:05 AM
08-29-2006 05:05 AM
Re: i dont have ROOT user on HP-UX
*more /etc/passwd --> u can see the root user home directory. if u want to change it to a directory, use usermod -d option. read about it thru man usermod.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2006 05:12 AM
08-29-2006 05:12 AM
Re: i dont have ROOT user on HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2006 05:35 AM
08-29-2006 05:35 AM
Re: i dont have ROOT user on HP-UX
I disagree with Clay and Patrick. I suggest you make a /root directory and make sure it owned by root, tnen change the permissions to 700 so only root has access to it. That way you have access to all of roots' files in single user mode, and no one else can browse/copy them
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2006 05:59 AM
08-29-2006 05:59 AM
Re: i dont have ROOT user on HP-UX
I need the steps to perform before installing ServiceGuard. like adding some IP (heart beat)to /etc/hosts or any thing as such what is this heartbeat Ip how can i chk it or get them.