> usermod -aG wheel username
Now switch to new user account from root.
> su - username
Check whether it works using a command which needs root privileges.
> sudo ls -ls /root
For the first time it will ask the user accounts password.
If the password is correct the command should execute with root privileges.
BUT if you receive a message like this.
That means the "wheel" group doesn't activated. To activate the group login as a root and check 'sudoers' file.
> visudo
That will open the 'sudoers' file. Go to the bottom and uncomment this line.
# %wheel ALL=(ALL) ALL
Now you can use root privileges.... ;)
No comments:
Post a Comment