|Lesson 10||sudo |
|Objective||Explain the use of the sudo command. |
Installing and using sudo
sudo command allows selected non-root users to execute restricted commands.
By using this command, access to the root account can be controlled.
The user does not need access to the
root password when using the
the user can use his or her own password, and the access to the specified commands can be set to a limited amount of time.
sudo package is supplied with Red Hat Powertools and can be installed by simply typing:
sudo command, an ordinary user can use their own password to execute commands with superuser privileges:
Disadvantages of sudo
sudo has the advantage that it allows you to grant extended power to sub-administrators without having to grant them full
access to the entire system; you can also control exactly which users can execute which commands. For ease of use,
remembers for a short period of time that a user has entered his or her password, so the user can execute several commands by entering
a password only once.
Although sudo allows certain users the ease of executing root-only commands as a regular user, it does have its disadvantages.
sudo is not configured very securely, it can be used to obtain full administrative access. By issuing the following
sudo /bin/sh, a user could start a
Also, if an attacker compromises a
sudo user's account, they may have a much easier time obtaining
The next lesson explains finding modified and sticky files.