LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 12-01-2009, 12:05 PM   #1
mikeb75
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Rep: Reputation: 0
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.
 
Old 12-01-2009, 12:21 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,397

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Apache: free access from lan users and password access to wan users... how? maginotjr Linux - Server 4 01-01-2011 11:08 AM
Sudo Help Needed, Please eshaaf Linux - Newbie 4 11-11-2007 07:15 AM
startup program: is sudo needed? Patrick K Ubuntu 2 04-24-2007 10:29 AM
Sudo password for users, a.k.a. sudoers Micro420 Suse/Novell 2 04-21-2006 09:23 PM
I need my LAN users to access the internet using automatic configuratin script on RH9 akohamen Linux - Networking 1 04-20-2004 03:09 PM


All times are GMT -5. The time now is 12:55 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration