- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: User with Admin Rights
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
тАО11-21-2010 10:13 PM
тАО11-21-2010 10:13 PM
I want to create a user with admin rights.
I dont want to use root for all the cases.
I need a user with all admin rights.
The user can able start and stop the application, start and stop the oracle packages, shutdown or restart the server, etc..
pls guide me....
Thanks,
Suriya
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2010 10:27 PM
тАО11-21-2010 10:27 PM
SolutionYou can do this by creating another user with uid 0.
There is an option "-o" for creating users with non unique user ids
useradd
-o Allow the UID to be non-unique (that is, a duplicate).
Hope this helps.... if helpful give appropriate points.
Thanks & Regards
Jayakrishnan G Naik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2010 10:33 PM
тАО11-21-2010 10:33 PM
Re: User with Admin Rights
Thanks for the reply.
If i create the user with the id 0.
what about the root user with id 0.
and tell me the full command to create the user with admin rights bcoz i'm new to unix.
Thanks,
Suriya.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2010 10:51 PM
тАО11-21-2010 10:51 PM
Re: User with Admin Rights
# useradd -u 0 -o -g (group id) -d /home/user -m -s /bin/sh username
-u uid
-g gid
-d home directory
-m create the home directory for the new login
-s login shell
set the values for "(group id), /home/user , /bin/sh , username " etc depending on your need and environment.
>>New to unix
Manpages for the commands are always useful, and you can develop a habit to read manpages which can solve many doubts.
Thanks & Regards
Jayakrishnan G Naik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2010 10:58 PM
тАО11-21-2010 10:58 PM
Re: User with Admin Rights
If i create the user with uid 0.
the root user will take which uid.
Thanks,
Suriya.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2010 11:02 PM
тАО11-21-2010 11:02 PM
Re: User with Admin Rights
root user always use uid 0 and the -o option allows you to use duplicate uid
for another user. It means you can create multiple users with same uid.
Please read my first reply which clearly tells what more on the option
" -o"
Please assign appropriate points to the replies.
Thanks & Regards
Jayakrishnan G Naik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2010 11:05 PM
тАО11-21-2010 11:05 PM
Re: User with Admin Rights
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2010 01:22 AM
тАО11-22-2010 01:22 AM
Re: User with Admin Rights
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2010 01:25 AM
тАО11-22-2010 01:25 AM
Re: User with Admin Rights
I try the two super user option, it was not working. its not able to process even the swlist command. Pls tell me to configure sudo or RBAC which one is better.
Thanks,
Suriya.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2010 01:35 AM
тАО11-22-2010 01:35 AM
Re: User with Admin Rights
This can't fail if you set it up correctly. If not trusted, vipw(1m) can do it. What does id(1) show?
>tell me to configure sudo or RBAC which one is better.
You need to download both, one form the porting center and one from HP.
You can search for more threads on the two:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=805956
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1238372