GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: sudoers problem
Operating System - HP-UX
1844668
Members
2350
Online
110233
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
07-15-2009 05:22 AM
07-15-2009 05:22 AM
sudoers problem
Hi guys, actually what happened is that recently a user who was in the /etc/sudoers file with root permissions tried to su to root and was told that his userid is not in the sudoers file... Now, no body made any changes and this user has been using the sudoers for quite a while now.. I readded his name and he could use the sudo access again.
But as part as my investigation as to what happened where should i begin.. In the syslog.log file it only tells the time the user tried to log in and got the error message.
Thanks
But as part as my investigation as to what happened where should i begin.. In the syslog.log file it only tells the time the user tried to log in and got the error message.
Thanks
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2009 05:30 AM
07-15-2009 05:30 AM
Re: sudoers problem
It's a bit late now.
Double-checking the sudoers file and verifying that his user id was there and set up correctly would have been my first step.
If you have a backup copy of the file from the time this occurred you could still investigate.
Otherwise, there is not much to look at now.
Double-checking the sudoers file and verifying that his user id was there and set up correctly would have been my first step.
If you have a backup copy of the file from the time this occurred you could still investigate.
Otherwise, there is not much to look at now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2009 05:38 AM
07-15-2009 05:38 AM
Re: sudoers problem
If you can share the sudoers line where he is being authorized to have root level access, that would help brainstorming.
Shooting from the hip, I can think of one way this could have happened: this user's root level access was covered by a group membership in sudoers file such as:
%sysadm ALL = (ALL) ALL
and he was a sysadm member in /etc/groups file (or his/her primary group was set as sysadm. Somebody changing this might have caused the user lose access to root level.
HTH
Shooting from the hip, I can think of one way this could have happened: this user's root level access was covered by a group membership in sudoers file such as:
%sysadm ALL = (ALL) ALL
and he was a sysadm member in /etc/groups file (or his/her primary group was set as sysadm. Somebody changing this might have caused the user lose access to root level.
HTH
________________________________
UNIX because I majored in cryptology...
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2009 08:58 AM
07-15-2009 08:58 AM
Re: sudoers problem
Check the timestamp on your sudoers file. When was it last changed? Only root can do this so backtrack through root's shell history looking for visudo or any reference to sudoers. Look for root hacks like sudo sh in the sudo log file. Using sudo to run a shell, while convenient, should be a violation of corporate policy. Check also any restores from backup media. And of course, using the ubiquitous (but not secure at all) construct: ALL = (ALL) ALL means that the user or group of users with that designation have keys to the kingdom -- a bad thing in security and proper privilege separation.
Bill Hassell, sysadmin
Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP