Saturday, April 16, 2011

/etc/sudoers

This file is mainly for adding commands for which there is no need to change to root login
In this file the commands are updated and the userlogin is also added so that user can 
directly run the command using sudo keyword(for all the commands added in this file).

 Example for how the user entry can be added:

format:
userlogin (terminal from which command can be run) = (which user he can be) commands he can run from the list in this file

example:

dhivya (ALL) = (ALL) ALL

This means the user with login Dhivya can execute from all terminals  and act as any user as said as ALL
and execute any command in the list given in the file /etc/sudoers  as said by ALL