Score:0

Create new users with a default group

py flag

I want to create a new user with a group called gfirt with a guid 1111. Firstly, I did groupadd -g 1111 gfirt. Then I add the user test creating a home directory and setting the password. The result of less /etc/passwd is test:x:3022:3022::/usr/local/users/test:/usr/local/bin/identification I want that just doing useradd -m -p passwd test creates the user with guid 1111 that is gfirt.

Edit: Just found the answer. I needed to edit login.defs and turn to no the option USERGROUPS_ENAB.

hr flag
You'd basically need to disable [usergroups](https://wiki.debian.org/UserPrivateGroups) and configure the default group in /etc/default/useradd to be 1111 instead of 100 - read the man pages for `useradd` and `login.defs` and decide whether that's really what you want to do, it goes against the established Ubuntu/Debian user management paradigm
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.