Playing Dangerous with sudo

So Geeks .. Time to play something “dangerous”.

You all are familiar with the “sudo” command. It can used to delegate some commands to a normal or specific user. You just need to edit the /etc/sudoers file for specific user and for specific command.

Then user just need to prefix “sudo” before executing those delegated commands. Its good, safe and of practical use.

But in case and if needed (you need to take care here) you can give the root shell also to the user. So now he can execute ANY root command without giving “sudo” every time.

Can be fun, but can be dangerous. So geeks make sure you give this facility to very very trusted users only or to yourself, if you are the admin.

Here is the screenshot of how to play dangerous.

Giving root shell to user using sudo

Giving root shell to user using sudo