- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: sudo - 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
10-28-2004 08:17 AM
10-28-2004 08:17 AM
Does anyone know how to configure sudo to allow an average user to get to a root prompt, as opposed to using 'sudo -u some-command'?
If someone has the answer, could you include an example suders file?
Thanks in advance. .
Jim
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2004 08:22 AM
10-28-2004 08:22 AM
Solution# Host Aliases
Host_Alias BOL=system1
# User Aliases
User_Alias S36ADM=user1,user2,user3
# Command Aliases
Cmnd_Alias SU=/usr/bin/su -
# Defaults specification
# User privilege specification
S36ADM BOL=SU
With the above sudoers file user1, user2 or user3 would do:
$ sudo /usr/bin/su -
To get FULL root access.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2004 08:26 AM
10-28-2004 08:26 AM
Re: sudo - root access
Though, one question; would this log the users activity while in as root?
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2004 08:36 AM
10-28-2004 08:36 AM
Re: sudo - root access
Any commands they run would not be logged via sudo, no. Sudo gives them the ability to do the 'su -'. Once they are at the # prompt, sudo is out of the picture.
You would have to have some other type of logging to log all of the commands they do.
I would be much more comfortable limiting users to specific commands. Once a user does a 'su -' and gets the root (#) prompt, they are root and can do anything they want on the system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2004 08:40 AM
10-28-2004 08:40 AM
Re: sudo - root access
Thank you.
I appreciate your help, and will more than likely limit users to certain commands like you mentioned.
Jim