You are not logged in.
Hello this is my first time using a linux distro and I tried installing tor browerser but it says that my only username on this installation is not in the sudoers file which probably means I can't execute sudo commands.
My question is how do I enable myself to use them? Thank you in advance.
Offline
Hello.
Once logged in as a user, you can verify whether or not the user belongs to group=sudo using either the id or groups commands. E.g., a user with id=foo should see output from
$ groups
like
foo sudo
If sudo is not present in the output, the user does not belong to that group.
To add an existing user with id=foo to group=sudo:
get root and then run the command:
# adduser foo sudo
After being added to a new group the user must log out and then log back in again for the new group to take effect.
Last edited by stopAI (2023-08-23 16:01:52)
Offline
Thanks for the advice! I managed to find how to get access to root online but when I tried
# adduser foo sudo
it said that adduser command doesn't exist.
Thanks for the advice never the less!
Offline
adduser command doesn't exist.
Devuan inherits the shadow -> util-linux change to su behavior from upstream Debian as mentioned here, and the same solutions apply.
Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.
Offline
Thanks a ton, I managed to add myself into sudo. Marking as solved.
Offline