Unable to add entry in /etc/group
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
Ran below commands to create a group
[root@u87 ~] # groupadd -g 2441 somegroup
groupadd: group 'somegroup' already exists
[root@u87 ~]# cat /etc/group | grep somegroup
[root@u87 ~]#
[root@u87 ~]#
[root@u87 ~]#
[root@u87 ~]# cat /etc/system-release
Red Hat Enterprise Linux Server release 7.5 (Maipo)
How do I understand this error?
linux users group
add a comment |Â
up vote
0
down vote
favorite
Ran below commands to create a group
[root@u87 ~] # groupadd -g 2441 somegroup
groupadd: group 'somegroup' already exists
[root@u87 ~]# cat /etc/group | grep somegroup
[root@u87 ~]#
[root@u87 ~]#
[root@u87 ~]#
[root@u87 ~]# cat /etc/system-release
Red Hat Enterprise Linux Server release 7.5 (Maipo)
How do I understand this error?
linux users group
What doesgetent group somegroup
output?
â Stephen Kitt
Sep 19 at 14:59
@StephenKitt output issomegroup:*:2441:someuser
. Does local groupname always sit in/etc/group
?
â overexchange
Sep 19 at 15:02
See also: unix.stackexchange.com/a/145351/117549
â Jeff Schaller
Sep 19 at 15:32
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Ran below commands to create a group
[root@u87 ~] # groupadd -g 2441 somegroup
groupadd: group 'somegroup' already exists
[root@u87 ~]# cat /etc/group | grep somegroup
[root@u87 ~]#
[root@u87 ~]#
[root@u87 ~]#
[root@u87 ~]# cat /etc/system-release
Red Hat Enterprise Linux Server release 7.5 (Maipo)
How do I understand this error?
linux users group
Ran below commands to create a group
[root@u87 ~] # groupadd -g 2441 somegroup
groupadd: group 'somegroup' already exists
[root@u87 ~]# cat /etc/group | grep somegroup
[root@u87 ~]#
[root@u87 ~]#
[root@u87 ~]#
[root@u87 ~]# cat /etc/system-release
Red Hat Enterprise Linux Server release 7.5 (Maipo)
How do I understand this error?
linux users group
linux users group
asked Sep 19 at 14:56
overexchange
312212
312212
What doesgetent group somegroup
output?
â Stephen Kitt
Sep 19 at 14:59
@StephenKitt output issomegroup:*:2441:someuser
. Does local groupname always sit in/etc/group
?
â overexchange
Sep 19 at 15:02
See also: unix.stackexchange.com/a/145351/117549
â Jeff Schaller
Sep 19 at 15:32
add a comment |Â
What doesgetent group somegroup
output?
â Stephen Kitt
Sep 19 at 14:59
@StephenKitt output issomegroup:*:2441:someuser
. Does local groupname always sit in/etc/group
?
â overexchange
Sep 19 at 15:02
See also: unix.stackexchange.com/a/145351/117549
â Jeff Schaller
Sep 19 at 15:32
What does
getent group somegroup
output?â Stephen Kitt
Sep 19 at 14:59
What does
getent group somegroup
output?â Stephen Kitt
Sep 19 at 14:59
@StephenKitt output is
somegroup:*:2441:someuser
. Does local groupname always sit in /etc/group
?â overexchange
Sep 19 at 15:02
@StephenKitt output is
somegroup:*:2441:someuser
. Does local groupname always sit in /etc/group
?â overexchange
Sep 19 at 15:02
See also: unix.stackexchange.com/a/145351/117549
â Jeff Schaller
Sep 19 at 15:32
See also: unix.stackexchange.com/a/145351/117549
â Jeff Schaller
Sep 19 at 15:32
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
Groups (and other user information) can be defined in places other than /etc/group
; e.g. LDAP. The sources of information are configured in /etc/nsswitch.conf
.
To retrieve information from whatever sources are used, use getent
:
getent group somegroup
You can use this to check the existence of a group before trying to add it:
getent group somegroup || groupadd -g 2441 somegroup
how to retrieve information ofsomeuser
from LDAP?getent user
?
â overexchange
Sep 19 at 15:12
@JeffSchallergetent user someuser
does not work. I would like to know the uid
â overexchange
Sep 19 at 15:19
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
Groups (and other user information) can be defined in places other than /etc/group
; e.g. LDAP. The sources of information are configured in /etc/nsswitch.conf
.
To retrieve information from whatever sources are used, use getent
:
getent group somegroup
You can use this to check the existence of a group before trying to add it:
getent group somegroup || groupadd -g 2441 somegroup
how to retrieve information ofsomeuser
from LDAP?getent user
?
â overexchange
Sep 19 at 15:12
@JeffSchallergetent user someuser
does not work. I would like to know the uid
â overexchange
Sep 19 at 15:19
add a comment |Â
up vote
2
down vote
Groups (and other user information) can be defined in places other than /etc/group
; e.g. LDAP. The sources of information are configured in /etc/nsswitch.conf
.
To retrieve information from whatever sources are used, use getent
:
getent group somegroup
You can use this to check the existence of a group before trying to add it:
getent group somegroup || groupadd -g 2441 somegroup
how to retrieve information ofsomeuser
from LDAP?getent user
?
â overexchange
Sep 19 at 15:12
@JeffSchallergetent user someuser
does not work. I would like to know the uid
â overexchange
Sep 19 at 15:19
add a comment |Â
up vote
2
down vote
up vote
2
down vote
Groups (and other user information) can be defined in places other than /etc/group
; e.g. LDAP. The sources of information are configured in /etc/nsswitch.conf
.
To retrieve information from whatever sources are used, use getent
:
getent group somegroup
You can use this to check the existence of a group before trying to add it:
getent group somegroup || groupadd -g 2441 somegroup
Groups (and other user information) can be defined in places other than /etc/group
; e.g. LDAP. The sources of information are configured in /etc/nsswitch.conf
.
To retrieve information from whatever sources are used, use getent
:
getent group somegroup
You can use this to check the existence of a group before trying to add it:
getent group somegroup || groupadd -g 2441 somegroup
answered Sep 19 at 15:08
Stephen Kitt
148k22325393
148k22325393
how to retrieve information ofsomeuser
from LDAP?getent user
?
â overexchange
Sep 19 at 15:12
@JeffSchallergetent user someuser
does not work. I would like to know the uid
â overexchange
Sep 19 at 15:19
add a comment |Â
how to retrieve information ofsomeuser
from LDAP?getent user
?
â overexchange
Sep 19 at 15:12
@JeffSchallergetent user someuser
does not work. I would like to know the uid
â overexchange
Sep 19 at 15:19
how to retrieve information of
someuser
from LDAP? getent user
?â overexchange
Sep 19 at 15:12
how to retrieve information of
someuser
from LDAP? getent user
?â overexchange
Sep 19 at 15:12
@JeffSchaller
getent user someuser
does not work. I would like to know the uidâ overexchange
Sep 19 at 15:19
@JeffSchaller
getent user someuser
does not work. I would like to know the uidâ overexchange
Sep 19 at 15:19
add a comment |Â
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%2f470040%2funable-to-add-entry-in-etc-group%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
What does
getent group somegroup
output?â Stephen Kitt
Sep 19 at 14:59
@StephenKitt output is
somegroup:*:2441:someuser
. Does local groupname always sit in/etc/group
?â overexchange
Sep 19 at 15:02
See also: unix.stackexchange.com/a/145351/117549
â Jeff Schaller
Sep 19 at 15:32