HEllo All

How can i configure /etc/sudoers as a centralized configuration file for two machines .

I updated /etc/sudoers file as the following

# Host alias specification
Host_Alias HOSTS = krishna, kaveri

# User alias specification
User_Alias USRS = sara,saran

# Cmnd alias specification
Cmnd_Alias CMDS = /usr/sbin/swlist, /usr/bin/su, /usr/sbin/lanscan


# User privilege specification

USRS HOSTS = NOPASSWD: CMDS

Here, krishna and kaveri are two different hosts on the network.
I can run the specified commands in krishna machine(bcos the above /etc/sudoers file is in that host ). But can't run the commands in kaveri. ( bcos user privileges r not supporting the mentioned users. ) how to make the above as a centralized configuration file ?

How can i run the sudo command in another machine ?

Regards,
Saravanan