Question about Replication of the /etc/sudoers
lcrepet at free.fr
Thu May 27 13:16:08 EDT 2004
Le jeudi 27 Mai 2004 19:01, Danny Bendersky a écrit :
> Last few days I started to use sudo in order to do things as root
> without using the root password. The problem that I have is that I have
> about 35 Servers and I want to replicate the /etc/sudoers in all the
> servers to have exactly the same privilegies in each server.
> The way i configure all the servers is having a central server that
> serve CVS and RSYNC, so all the configurations, including the
> "/etc/sudoers" file I upload ti the CVS Server, and then each server
> get the file using RSYNC.
> Then, when I try to use the sudo, it claims that the "/etc/sudoers" is
> corrupt. I just edit the file locally with VI doing nothing more than
> delete any coment line, and then the sudo works.
> Any idea why the replication fails? any suggestion to implement this?
Did you check the original file on the central server, using visudo -c or just
visudo (it checks that the file syntax is correct before saving it) ?
You should also use visudo instead of vi on the local sudoers file to check
its syntax. visudo should be able to tell you if there are syntax errors in
the sudoers file.
Laurent CREPET -- lcrepet at free.fr
More information about the sudo-users