- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Create new user with root privileges
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
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
тАО08-11-2008 08:49 AM
тАО08-11-2008 08:49 AM
I do not wish to use the default root user due to security reasons and thus trying to create a new user with root privileges to do my admin tasks.
What is the appropriate useradd command options to use in order to do this. The username I wish to use is "admin".
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2008 08:54 AM
тАО08-11-2008 08:54 AM
Re: Create new user with root privileges
There's really no such thing as "root privileges," but you can obtain what you are looking for mostly by assigning many secondary groups to your "admin" user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2008 08:57 AM
тАО08-11-2008 08:57 AM
Re: Create new user with root privileges
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2008 08:58 AM
тАО08-11-2008 08:58 AM
Re: Create new user with root privileges
If you create another user with root privelages it negates any security concerns because that user can then do anything that root can do...
If you wish to only give "some" privelages to another user then either sudo or restricted SAM is the way to go.
Again, if you wish to create another username with complete "root" privs then you might as well just give them the root password.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2008 08:59 AM
тАО08-11-2008 08:59 AM
Re: Create new user with root privileges
Rather my intention is to allow this new user to be able to perform tasks and execute commands pertaining to Network configuration and troubleshooting, DNS configuration, Backup as well as NFS.
Do i really need to assign this new user a user ID of 0?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2008 09:10 AM
тАО08-11-2008 09:10 AM
SolutionThe 'root' user is *any* user with a uid=0.
Do *not* have multiple user accounts with uid=0. Not only is this a great security risk, but it is dangerous for the following reason:
# find / -user someuser -exec rm -rf {} \+
...you *thought* you were cleaning up "someuser" but when its uid=0, you just removed 'root's files and directories!
Using 'sudo' is the most appropriate, safe way to do what you want.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2008 09:11 AM
тАО08-11-2008 09:11 AM
Re: Create new user with root privileges
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2008 04:20 PM
тАО08-11-2008 04:20 PM
Re: Create new user with root privileges
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2008 05:19 PM
тАО08-11-2008 05:19 PM
Re: Create new user with root privileges
sudo is available from http://software.hp.com as part of Internet Express.
Search for it and you can choose to download sudo alone.
This will include all dependencies which the version from the Porting and Archive Center make you do for yourself.
sudo is the way to go.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2008 07:55 PM
тАО08-11-2008 07:55 PM
Re: Create new user with root privileges
Regards
Safar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2008 08:36 PM
тАО08-11-2008 08:36 PM
Re: Create new user with root privileges
HP-UX RBAC is an alternative to the traditional "all-or-nothing" root user model, which grants permissions to the root user for all operations, and denies permissions to non-root users for certain operations. HP-UX RBAC allows you to distribute administrative responsibilities by creating roles with appropriate authorizations and assigning them to non-root users and groups.
http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=A
ccessControl
http://docs.hp.com/en/5992-2395/ch05s05.html
Regards,
Asif Sharif
Asif Sharif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2008 09:45 AM
тАО08-12-2008 09:45 AM