- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Root user
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
02-20-2003 05:01 AM
02-20-2003 05:01 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 05:08 AM
02-20-2003 05:08 AM
Solutionmodify your UID to be 0
you can either do it when creating the user in SAM
or modify your password file
root:ItDrkovo.KRhs:0:3::/:/sbin/sh
^^
hope this helps!
Regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 05:09 AM
02-20-2003 05:09 AM
Re: Root user
This will create the user with a directory of /home/root2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 05:11 AM
02-20-2003 05:11 AM
Re: Root user
For example what happens if you go to delete this other user and delete all the files it owns. All files owned by root will be deleted.
I picked that up from a post on the forum somewhere and it made me think.
Can you not just get what you want from su? Or sudo (again search for this)?
Would I be right in saying you have two admins and they both want to have different passwords?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 05:12 AM
02-20-2003 05:12 AM
Re: Root user
There are a number of ways to handle situations like this.
> Using "restricted SAM" is one method. See the man pages for 'sam' for more information.
> Using 'sudo' is another (common) choice.
http://hpux.cs.utah.edu/hppd/hpux
> Creating setuid scripts or c-wrappers is sometimes done, but this can be a large security risk.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 05:15 AM
02-20-2003 05:15 AM
Re: Root user
While any account with a uid=0 is a superuser account, *beware* the day you (or your successor) forget that the account named 'kevin' is such an account, and you (or your successor) runs something like:
# find / -type f -user kevin -exec rm {} \;
...the result is that files with uid=0 are removed. Guess which files!!!
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 05:26 AM
02-20-2003 05:26 AM
Re: Root user
Yes, Mr. James R. Ferguson is right!
SUDO will be a much better alternative to consider.
Best Regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 05:40 AM
02-20-2003 05:40 AM
Re: Root user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 07:07 AM
02-21-2003 07:07 AM
Re: Root user
You have good suggestions on how to do this, just some comments on use.
We've used multiple root ids on hp-ux v7-11, SCO Unix, Solaris, AIX, and various Linuxes. Works very nicely on all, and avoids changing every root password on every server every time a sysadmin leaves (the "real" root passwords are escrowed with me by the primary sysadmin for the platform). But we always use a name consisting of initials+root, e.g wceroot, to avoid confusion with one's vanilla ids.