PlanetJoel.com

Month: November 2008

  • test-sudoers.py – Test a sudoers file through python

    I wrote a quick script called test-sudoers.py which reads a sudoers file and can answer questions like “what commands can a particular user run on a particular host?” and “can a particular user run a command?”. The latter is particularly useful because using return codes that can be scripted and allow certain actions based on…