What is sudo: sudo (super user do) permit users to execute commands with privileges of other users, usually it is used to permit normal users to execute commands with root privileges. Sudo has the convenience to limiti the use of root account and to logging, both successful and unsuccessful, attempts to log file.
The syntax of sudo is:
# sudo [options] command_to_execute
now sudo, by default, requires that user autheticate themselves with his system password (not root password); an user is authorized to use a command if he is listed in /etc/sudoers file, but if he is unauthorized a mail is sent to root or to user specified in config file. To install sudo in Debian run:
# apt-get install sudo
The configuration file of sudo is /etc/sudoers, it is editable vith the utility visudo: it open the sudoers file with your system editor and do the check of file syntax. The syntax of file sudoers
P.S.: be carefull when you configure sudo, it is a very powerful tool, that used in wrong way can damage the system.
For a good configuration of sudoers file see this link: www.courtesan.com/sudo/man/sudoers.html
Bye Bye.

Entries (RSS)