I added a user to the root group, but the user is still not able to perform operations that require root's permissions. What is the problem?
Asked
Active
Viewed 849 times
2 Answers
2
root login is disabled on Ubuntu. Adding user to the root group will only allow access to files that have root group, for example some config files. Being in the root group does NOT give any special privs.
To grant a user access to sudo, read man sudoers and add them to the sudo group.
adduser <username> sudo
The, once the other user logs out&in, or does a newgrp sudo, the other user will be able to preface his/her command with sudo to run as root, e.g. sudo wc -l /etc/shadow.
waltinator
- 37,856