- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SU_ROOT_GROUP not working
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-30-2008 10:25 PM
10-30-2008 10:25 PM
My userID is defined in the sudoers file as a user who can perform "sudo su -" with the NOPASSWD parameter set
In the security file, I defined SU_ROOT_GROUP=adm. I did not include my userID in the adm group to test if I can still execute "sudo su -", and it did; I was still able to su to root even if I'm not in the adm group.
Any ideas about this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2008 10:28 PM
10-30-2008 10:28 PM
Re: SU_ROOT_GROUP not working
su -
instead of sudo to check this.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2008 10:35 PM
10-30-2008 10:35 PM
Re: SU_ROOT_GROUP not working
Not clearly getting your point are you switch to normal user to root user?
if yes then
just do
#su
or
#su - ( for execute root profile)
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2008 10:53 PM
10-30-2008 10:53 PM
SolutionFirst, the "sudo" part of the command is setuid root. It needs to be; otherwise it could not switch the user's identity at all. As there is no -u option in the sudo command line, sudo will run the following command as a root user.
So, when the "su -" part starts running, _you are already root_, although your environment settings are still normal-user-like. The "su -" command transforms the root user into the root user, which is obviously allowed, as the root can do anything. At the same time, it recreates the environment settings from scratch... which is probably your primary reason of using "sudo su -" instead of "sudo -s".
If you don't believe me, look into your syslog: you will see first sudo's entry, confirming that the user
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2008 02:26 PM
11-02-2008 02:26 PM