As a upcoming system Administrator in Linux, I would like to know how a normal Linux user can be promoted to gain root or superuser privileges. It may not be a good practice but having the knowledge may be an essential.
Always use visudo instead of sudo nano /etc/sudoers, editing the file /etc/sudoers is not recommended, because the main advantage of visudo is it will prompt you an warning message if you did any syntax error with in the file.
as i have a scenerio that , i dont want to give the full root privilage for a user, i just wanted to give privillages for only certain commands like cp, installing, reboot, shutdown, how can i give this.
i came to know that to give like this usera ALL=(ALL) command1 command2 command3
but my doubt is how can i give the command1, command2 , for example for reboot can i give simply give reboot, but if i give its not working,
can anyone explain this how to give the commandsl, thanks in advance.