this post was submitted on 23 Oct 2024
21 points (88.9% liked)

Linux

47866 readers
1340 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

[Solved] just had to log out and back in Original post: I'm running Debian 12 and I set a separate root password from my username password.

When trying to install a .deb file I noticed that it said I was not in sudoers file so I looked it up and tried the command SU and successfully entered my root password.

The I tried doing

sudo usermod -aG sudo [username]

And then I verify the addition of the user to the sudo group with

groups [username]

And this does indeed show that I am in the sudo group however when I try to install a .deb file after that or even sudo apt update its still telling me I am not in sudoers list.

Any ideas what I'm doing wrong here?

top 6 comments
sorted by: hot top controversial new old
[–] Vector@lemmy.world 22 points 4 days ago (2 children)

You may need to log out and log back in for the addition of the sudo group to take effect.

The default config sudo should be fine, but if the above doesn’t work then you may also want to look up “visudo” to check/modify the sudo config.

[–] cmnybo@discuss.tchncs.de 7 points 4 days ago

Yes, you do have to log out for group changes to take effect.

[–] BobGnarley@lemm.ee 3 points 4 days ago

This worked thank you so much!

[–] ravhall@discuss.online 4 points 3 days ago
[–] Lemmchen@feddit.org 1 points 2 days ago

Group changes require a relog of the user.

[–] sundray@lemmus.org 3 points 4 days ago