Debian 9 - useradd

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite
1












Here is an extract of /etc/default/useradd:



GROUP=1005


Here is an extract of /etc/login.defs:



USERGROUPS_ENAB no


Here is the useradd command I run to create a user:



$ sudo useradd test22


$ id -a
uid=1006(test22) gid=100(users) groups=100(users)


According to man page of useradd above should give me gid=1005. But it give me the default gid=100.



Why doesn't it give me gid=1005?



Here are additional information:



$ sudo useradd -D
GROUP=1005
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel
CREATE_MAIL_SPOOL=no


$ sudo apt-cache policy passwd
passwd:
Installed: 1:4.4-4.1
Candidate: 1:4.4-4.1
Version table:
*** 1:4.4-4.1 500
500 http://debian.lth.se/debian stretch/main amd64 Packages
100 /var/lib/dpkg/status






share|improve this question






















  • Does a group with GID 1005 exist?
    – Thomas
    Feb 17 at 18:25










  • Is GROUP reset to 100 later in your /etc/default/useradd?
    – Kusalananda
    Feb 17 at 18:26










  • Yes, GID 1005 exists in /etc/group
    – Nameen
    Feb 17 at 18:28










  • There is only one entry of GROUP in /etc/default/useradd. That is GROUP=1005 Therefore I cannot see how it can be reset later on.
    – Nameen
    Feb 17 at 18:30










  • Does the same thing happen if you use the -N flag with useradd?
    – Kusalananda
    Feb 17 at 18:31














up vote
1
down vote

favorite
1












Here is an extract of /etc/default/useradd:



GROUP=1005


Here is an extract of /etc/login.defs:



USERGROUPS_ENAB no


Here is the useradd command I run to create a user:



$ sudo useradd test22


$ id -a
uid=1006(test22) gid=100(users) groups=100(users)


According to man page of useradd above should give me gid=1005. But it give me the default gid=100.



Why doesn't it give me gid=1005?



Here are additional information:



$ sudo useradd -D
GROUP=1005
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel
CREATE_MAIL_SPOOL=no


$ sudo apt-cache policy passwd
passwd:
Installed: 1:4.4-4.1
Candidate: 1:4.4-4.1
Version table:
*** 1:4.4-4.1 500
500 http://debian.lth.se/debian stretch/main amd64 Packages
100 /var/lib/dpkg/status






share|improve this question






















  • Does a group with GID 1005 exist?
    – Thomas
    Feb 17 at 18:25










  • Is GROUP reset to 100 later in your /etc/default/useradd?
    – Kusalananda
    Feb 17 at 18:26










  • Yes, GID 1005 exists in /etc/group
    – Nameen
    Feb 17 at 18:28










  • There is only one entry of GROUP in /etc/default/useradd. That is GROUP=1005 Therefore I cannot see how it can be reset later on.
    – Nameen
    Feb 17 at 18:30










  • Does the same thing happen if you use the -N flag with useradd?
    – Kusalananda
    Feb 17 at 18:31












up vote
1
down vote

favorite
1









up vote
1
down vote

favorite
1






1





Here is an extract of /etc/default/useradd:



GROUP=1005


Here is an extract of /etc/login.defs:



USERGROUPS_ENAB no


Here is the useradd command I run to create a user:



$ sudo useradd test22


$ id -a
uid=1006(test22) gid=100(users) groups=100(users)


According to man page of useradd above should give me gid=1005. But it give me the default gid=100.



Why doesn't it give me gid=1005?



Here are additional information:



$ sudo useradd -D
GROUP=1005
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel
CREATE_MAIL_SPOOL=no


$ sudo apt-cache policy passwd
passwd:
Installed: 1:4.4-4.1
Candidate: 1:4.4-4.1
Version table:
*** 1:4.4-4.1 500
500 http://debian.lth.se/debian stretch/main amd64 Packages
100 /var/lib/dpkg/status






share|improve this question














Here is an extract of /etc/default/useradd:



GROUP=1005


Here is an extract of /etc/login.defs:



USERGROUPS_ENAB no


Here is the useradd command I run to create a user:



$ sudo useradd test22


$ id -a
uid=1006(test22) gid=100(users) groups=100(users)


According to man page of useradd above should give me gid=1005. But it give me the default gid=100.



Why doesn't it give me gid=1005?



Here are additional information:



$ sudo useradd -D
GROUP=1005
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel
CREATE_MAIL_SPOOL=no


$ sudo apt-cache policy passwd
passwd:
Installed: 1:4.4-4.1
Candidate: 1:4.4-4.1
Version table:
*** 1:4.4-4.1 500
500 http://debian.lth.se/debian stretch/main amd64 Packages
100 /var/lib/dpkg/status








share|improve this question













share|improve this question




share|improve this question








edited Feb 17 at 22:06

























asked Feb 17 at 18:15









Nameen

64




64











  • Does a group with GID 1005 exist?
    – Thomas
    Feb 17 at 18:25










  • Is GROUP reset to 100 later in your /etc/default/useradd?
    – Kusalananda
    Feb 17 at 18:26










  • Yes, GID 1005 exists in /etc/group
    – Nameen
    Feb 17 at 18:28










  • There is only one entry of GROUP in /etc/default/useradd. That is GROUP=1005 Therefore I cannot see how it can be reset later on.
    – Nameen
    Feb 17 at 18:30










  • Does the same thing happen if you use the -N flag with useradd?
    – Kusalananda
    Feb 17 at 18:31
















  • Does a group with GID 1005 exist?
    – Thomas
    Feb 17 at 18:25










  • Is GROUP reset to 100 later in your /etc/default/useradd?
    – Kusalananda
    Feb 17 at 18:26










  • Yes, GID 1005 exists in /etc/group
    – Nameen
    Feb 17 at 18:28










  • There is only one entry of GROUP in /etc/default/useradd. That is GROUP=1005 Therefore I cannot see how it can be reset later on.
    – Nameen
    Feb 17 at 18:30










  • Does the same thing happen if you use the -N flag with useradd?
    – Kusalananda
    Feb 17 at 18:31















Does a group with GID 1005 exist?
– Thomas
Feb 17 at 18:25




Does a group with GID 1005 exist?
– Thomas
Feb 17 at 18:25












Is GROUP reset to 100 later in your /etc/default/useradd?
– Kusalananda
Feb 17 at 18:26




Is GROUP reset to 100 later in your /etc/default/useradd?
– Kusalananda
Feb 17 at 18:26












Yes, GID 1005 exists in /etc/group
– Nameen
Feb 17 at 18:28




Yes, GID 1005 exists in /etc/group
– Nameen
Feb 17 at 18:28












There is only one entry of GROUP in /etc/default/useradd. That is GROUP=1005 Therefore I cannot see how it can be reset later on.
– Nameen
Feb 17 at 18:30




There is only one entry of GROUP in /etc/default/useradd. That is GROUP=1005 Therefore I cannot see how it can be reset later on.
– Nameen
Feb 17 at 18:30












Does the same thing happen if you use the -N flag with useradd?
– Kusalananda
Feb 17 at 18:31




Does the same thing happen if you use the -N flag with useradd?
– Kusalananda
Feb 17 at 18:31















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f424841%2fdebian-9-useradd%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f424841%2fdebian-9-useradd%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?