LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Script needed to get users with sudo access (http://www.linuxquestions.org/questions/linux-server-73/script-needed-to-get-users-with-sudo-access-772725/)

mikeb75 12-01-2009 01:05 PM

Script needed to get users with sudo access
 
Does anyone have a script to get a list of usernames with privileged (sudo/root) access on a remote server? I need to gather this data from multiple remote RHEL 4/5 servers. I have a secure key installed in the root account on all of these servers.

I know I can scp the necessary files over and then parse out the needed usernames, but if anyone has something complete, it would be very helpful.

acid_kewpie 12-01-2009 01:21 PM

well it depends on how you manage your sudoers file, what formatting conventions you use etc. You could attempt to cater for all sorts of subtle format changes, but there's no reason one script will necessarily work against another, especially if you're using group, netgroup or dns based restrictions.


All times are GMT -5. The time now is 01:41 AM.