sudo privileges

!!! This should be done with extreme care and this privilege should not given to the average user.  It's just convenient for the administrator to have root privileges without switching to the root user !!!

In order to give root privileges to another user execute the following commands (as root user)
>> usermod -G normaluser,wheel normaluser
then to check that normaluser was added to the wheel group (the group with sudo privileges), run the following and get the resulting output
>> groups normaluser
normaluser : normaluser wheel
Then if this hasn't already been done, run
>> visudo
and delete the highlighted text (the comment symbol ) if it exists in the file
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL)      ALL
then to exit from visudo type the following
(esc key :write , esc key :quit)

And normaluser now has root privileges by running
sudo
in front of any command to be run as the root user.

No comments: