- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Change userid to superuser (HPUX 11.0)
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
Discussions
Discussions
Forums
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
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
тАО10-02-2001 06:45 AM
тАО10-02-2001 06:45 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2001 06:52 AM
тАО10-02-2001 06:52 AM
Re: Change userid to superuser (HPUX 11.0)
Sam requires super-user privileges (i.e. root); however, you can set up "Restricted SAM" to allow users to perform certain tasks.
Man sam and search for "Restricted SAM" for details.
On your old box, you may have been assigned a uid of 0 - this is a bad thing!.
The best way to do what you are doing is to use sam as root but login as a normal user for everyday, routine tasks. Going around with a uid of 0 can get you in a whole lot of trouble really fast; remaining a regular user most of the time keeps you from being your own worst enemy.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2001 07:10 AM
тАО10-02-2001 07:10 AM
Re: Change userid to superuser (HPUX 11.0)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2001 07:12 AM
тАО10-02-2001 07:12 AM
Re: Change userid to superuser (HPUX 11.0)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2001 07:19 AM
тАО10-02-2001 07:19 AM
Re: Change userid to superuser (HPUX 11.0)
A 'uid' (regardless of what it's associated name is) identifies you as a 'superuser'. The /etc/passwd file forms the number-to-name mapping for which 'root' is uid=0. You will need to be a superuser to use the 'r' option of SAM (i.e. to run restricted SAM to confer privileges).
Resist, the temptation to make multiple superuser accounts. If you ever forget and, for instance, tell SAM to delete an account which happens to have a uid=0, you will "toast" your server as files owned by uid=0 begin to vaporize!
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2001 07:22 AM
тАО10-02-2001 07:22 AM
Re: Change userid to superuser (HPUX 11.0)
But if you're trully the admin, you should just do a su - to become root and run sam that way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2001 07:29 AM
тАО10-02-2001 07:29 AM
SolutionTo invoke the Restricted SAM Builder (sam -r), you must be root; otherwise, you get exactly that error message. Someone, must have used sam -r to basically allow you do do everything in SAM. If that's the case, you might as well run sam as root.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2001 07:43 AM
тАО10-02-2001 07:43 AM
Re: Change userid to superuser (HPUX 11.0)
However, I'll configure the restricted SAM as root to allow me to run SAM as my regular uid instead of root. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2001 07:47 AM
тАО10-02-2001 07:47 AM