this post was submitted on 13 Oct 2023
38 points (85.2% liked)
Linux
48333 readers
621 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
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Nah Debian 12 is weird. I recently installed on a few systems and they all do the same — usermod isn’t in roots $PATH by default, and my user account wasn’t a sudoer by default.
I’ve added myself to sudo but I keep getting “kicked out” when I start a new shell. Have to
newgrp sudo
to be able to sudo again.On the Debian installer when it gets to entering the password when you create the user, you just skip the first password page (leave it empty) and enter your password on the next page. This adds you to the sudoers group. I've found this out the hard way.
Group permissions from the /etc/group file get assigned at login. Each process will inherit group memberships from its parent.
You can see them for a process (self being the current process) in:
The gids there correspond to the gids in /etc/group.
That's why the need to log out the user in question after adding the user to a group, unless you're gonna use
sg
or similar to add that gid and then have all your new processes started by that process that you just started with the new gid.You'll see this with all user memberships in groups on Linux. It's not behavior specific to Debian or specific to membership in the wheel or sudo group.
Did not experience this. I followed the guide on CyberITHub and LinuxUprising, worked without issues.