Let me put it down this way from what I have understood from you.
from my above example:
1.Let system A be an NIS/LDAP server. In system A, I logged in as root and configured /etc/sudoers such that rajesh and saagar become sudo users.
2.I go to system B, scp the /etc/sudoers file of System A to System B, so that next time rajesh or saagar logs in to system B, they can run those sudo commands.
Since there is ALL directive there, they can run the command, if <Hostname> instead of ALL was there, it would have not been possible for them to run those sudo commands...am i right?
I hope I got it right.
Last edited by saagar; 06-06-2009 at 10:41 PM.