- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- questions about root access
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
06-15-2006 06:11 AM
06-15-2006 06:11 AM
questions about root access
2. i would like to create a username with root access. is this possible or are there still some restrictions that will require the user to su to root?
thank you in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 06:21 AM
06-15-2006 06:21 AM
Re: questions about root access
You can check /var/adm/sulog and /var/adm/syslog/syslog.log to see who switches to whom.
Basically, anyone who has the root password can become root.
2. Not a good idea - strongly (no strenuously) object to that. Better to use sudo. That said, you can do this by creating users with the same uid as root: 0
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 06:23 AM
06-15-2006 06:23 AM
Re: questions about root access
2) You **COULD** set up a user, and then modify that user so that the UID in /etc/passwd (and the /tcb/files/auth/?/username file) is 0. This will create a user that is the same as root. However, this is a VERY VERY VERY BAD idea. Under no circumstances would I ever recommend doing this.
A better idea would be to install and set up something like 'sudo'. sudo allows you to set up users and allow them to run commands as root.
For information on sudo have a look at:
http://www.gratisoft.us/sudo/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 06:23 AM
06-15-2006 06:23 AM
Re: questions about root access
And when creating that new user if you wanted to have root access the only thing you do is specify that you want that user to have user ID 0 and it will have root privileges.
Regards,
Jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 06:24 AM
06-15-2006 06:24 AM
Re: questions about root access
2. It is NOT a good idea to usernames full root access. If you do, you will have no audit trail. The system tracks commands by uid, not username. So if a command is issued you have no way to track it.
An ID other than root with root privledges (uid 0) will be a big negative mark if your system is ever audited for security.
By using su or sudo, you at least know who switched to root and what time they did, so you can tie any problems/issues that occur in that time frame back to them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 06:25 AM
06-15-2006 06:25 AM
Re: questions about root access
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1030858
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 06:27 AM
06-15-2006 06:27 AM
Re: questions about root access
1. Is there a command...to see what users have root access? Well, those who know the root password! Beyound that, you can consult '/var/adm/sulog' to see users who logged in as themselves and 'su'ed to root.
You should also look at the features of '/etc/default/security'. See the manpages for 'security(4)', in particular the 'SU_ROOT_GROUP' option.
You might want to create an '/etc/securetty' file to limit direct logins to the root account to the console. See the manpages for 'login(1)' for details on how to do this.
2. Do *NOT* setup multiple accounts with a uid=0. While the uid=0 means you have root privilege, consider what would happen if you had an account named 'chris' with a uid=0. While you would have the rights of root, suppose someone did:
# find / -user chris | xargs rm -rf {} \;
...you just annihilated your system!!! Remember, everything is a number to the operating system.
You can use 'sudo', restricted SAM and/or C program wrappers owned by root with their setuid permission set to accomodate special needs.
Regards!
...JRF...