Unable to add entry in /etc/group

The name of the pictureThe name of the pictureThe name of the pictureClash 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?










share|improve this question





















  • 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














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?










share|improve this question





















  • 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












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?










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 19 at 14:56









overexchange

312212




312212











  • 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
















  • 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















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










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





share|improve this answer




















  • 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











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%2f470040%2funable-to-add-entry-in-etc-group%23new-answer', 'question_page');

);

Post as a guest






























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





share|improve this answer




















  • 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















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





share|improve this answer




















  • 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













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





share|improve this answer












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






share|improve this answer












share|improve this answer



share|improve this answer










answered Sep 19 at 15:08









Stephen Kitt

148k22325393




148k22325393











  • 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

















  • 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
















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


















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































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?