– It is a very useful tool to give the role based access to the users.
– Using sudo we can become other user for complete new session or we can get access to commands which are not generally accessed.
– We can give access to files for certain users.
– To list the present sudo status for the user
# sudo -l |
– To long list the output
|
– To remove users cached credentials
|
– To get a file listing of an unreadable directory:
|
– To view system logs only accessible to root and users in the adm group:
|
– To shut down a machine:
|
– To run the command in background
|
– To run the command as another user
|
– To execute the given command by setting the primary group to the given group
|
– To validate the user credentials
|