[sudo-users] test-sudoers.py - Python script to test a sudoers file

Joel Heenan joel.heenan at gmail.com
Sun Nov 9 22:37:36 EST 2008


I wrote a script that parses a sudoers file and can print out who can
run what commands on which hosts. It can also test whether a
particular user can run a particular command and return a status code
indicating as much.

You can find it here:

http://www.planetjoel.com/viewarticle/626/test-sudoers.py+-+Test+a+sudoers+file+through+python

Joel



More information about the sudo-users mailing list