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.