Get sudoers information for all users on a server
- by Jon Kruger
I want to collect information on what sudoers actions a user can perform on a server. From what I've read, you can do this with the command sudo -l -U username. However, one server that I have has a slightly older version of sudo (1.6.7p5) and the -U option doesn't seem to exist (I don't own the server so I can't just upgrade to a newer version of sudo).
Has anyone ever had to collect sudoers information for all users on a server? How would you recommend doing it?