Debian 9 - useradd
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
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
debian group useradd
 |Â
show 6 more comments
up vote
1
down vote
favorite
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
debian group useradd
Does a group with GID 1005 exist?
â Thomas
Feb 17 at 18:25
IsGROUP
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 withuseradd
?
â Kusalananda
Feb 17 at 18:31
 |Â
show 6 more comments
up vote
1
down vote
favorite
up vote
1
down vote
favorite
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
debian group useradd
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
debian group useradd
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
IsGROUP
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 withuseradd
?
â Kusalananda
Feb 17 at 18:31
 |Â
show 6 more comments
Does a group with GID 1005 exist?
â Thomas
Feb 17 at 18:25
IsGROUP
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 withuseradd
?
â 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
 |Â
show 6 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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 withuseradd
?â Kusalananda
Feb 17 at 18:31