In order to give root privileges to another user execute the following commands (as root user)
>> usermod -G normaluser,wheel normaluserthen to check that normaluser was added to the wheel group (the group with sudo privileges), run the following and get the resulting output
>> groups normaluserThen if this hasn't already been done, run
normaluser : normaluser wheel
>> visudoand delete the highlighted text (the comment symbol ) if it exists in the file
# Uncomment to allow people in group wheel to run all commandsthen to exit from visudo type the following
# %wheel ALL=(ALL) ALL
(esc key :write , esc key :quit)
And normaluser now has root privileges by running
sudoin front of any command to be run as the root user.
No comments:
Post a Comment