04-25-2011 01:41 AM
Correct me if i am wrong.. Thanks in advance!
04-25-2011 04:01 AM
and i some forums i have seen the % symbol in front of the user name in /etc/sudoers file. what might be the reason for that. Please clarify Johnson..
04-25-2011 04:24 AM
If you choose to manage your sudoers file centrally, and use the same file in many hosts, you can use host names in that place to create sudoers definitions that apply in some specific hosts.
The % sign in front of a name means it's a group name, not an user name.
04-25-2011 10:17 PM
Is that really your intention?
Consider that thus user naraguna is allowed to edit root's crontab, enabling them to schedule any (possibly nefarious) script or program to be executed as root.
If instead it was only intended for naraguna to peek into root's scheduled cronjobs, it maybe would be wiser to change the sudoers line into:
naraguna ALL = NOPASSWD /usr/bin/crontab -l