Linux – Can you copy a sudoers file from one server to another

linuxredhatsudo

We've got a handful of RHEL5 servers and I was wondering if you could copy a master sudoer file from one of the Linux servrs and over write the default one on all the other servers and have it work?

Best Answer

Depends on whether or not there are host-based restrictions in the sudoers file, but in the absence of those ("ALL" as the host restriction), yes you can.

visudo does not "compile" the file, only locks it and performs sanity audits to make sure you don't manage to lock yourself out.