The officially official Devuan Forum!

You are not logged in.

#1 2023-08-23 14:29:01

evilpistachio
Member
Registered: 2023-08-23
Posts: 4  

[SOLVED] (username) is not in the sudoers file.

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

#2 2023-08-23 15:54:37

Gregors
Member
From: Freiburg, Germany
Registered: 2018-08-09
Posts: 40  
Website

Re: [SOLVED] (username) is not in the sudoers file.

I don't use sudo. If I have to do something only root can do I use "su -",

HTH

Gregor

Offline

#3 2023-08-23 16:01:09

stopAI
Member
Registered: 2023-04-04
Posts: 131  

Re: [SOLVED] (username) is not in the sudoers file.

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

#4 2023-08-23 18:54:19

evilpistachio
Member
Registered: 2023-08-23
Posts: 4  

Re: [SOLVED] (username) is not in the sudoers file.

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

#5 2023-08-23 19:33:40

steve_v
Member
Registered: 2018-01-11
Posts: 343  

Re: [SOLVED] (username) is not in the sudoers file.

evilpistachio wrote:

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

#6 2023-08-24 08:51:00

evilpistachio
Member
Registered: 2023-08-23
Posts: 4  

Re: [SOLVED] (username) is not in the sudoers file.

Thanks a ton, I managed to add myself into sudo. Marking as solved.

Offline

Board footer