[sudo-users] Script to list users and privileges?

David Barr dafydd at dafydd.com
Thu Mar 20 12:44:06 MDT 2014

Hi, Tim,

Thanks for getting back to me. I found this out on the web, as well: http://github.com/jeremypruitt/sudoers-report I’m going to clone and experiment with this, and see what I get.


On Mar 20, 2014, at 10:10, Tim Bradshaw <tfb at tfeb.org> wrote:

> On 20 Mar 2014, at 15:58, David Barr <dafydd at dafydd.com> wrote:
>> My second thought was that someone on this list might already be doing something similar. I recall seeing a similar need come across this list in the last year or so.
> I was probably that person.  I do have such a script but I can't share it (written for a client).  One thing that's it's significantly hard to do this *right* because parsing sudoers is significantly hard to get right. sudo (or visudo) now has a way of spitting out the sudoers file in JSON, which I haven't used, but would certainly be interesting in this context.
> --tim


David - Offbeat		http://dafydd.livejournal.com
dafydd - Online		http://pgp.mit.edu/
Battalion 4 - Black Rock City Emergency Services Department


Werner Heisenberg is driving down the autobahn. A police officer pulls
him over. The officer says, "Excuse me, sir, do you know how fast you
were going?"
"No," replies Dr. Heisenberg, "but I know where I am."

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.sudo.ws/pipermail/sudo-users/attachments/20140320/d5990791/attachment.bin>

More information about the sudo-users mailing list