HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Odd error while trying to call SAM

 
SOLVED
Go to solution
Jarheadatheart
Regular Advisor

Odd error while trying to call SAM

All,
I am on a RP7420 running 11.11, I tried to call up SAM and recieved the following error:

A call to the routine getgrgid(3C) failed for GID "20". The group x
x database does not exist or the entry for the group corresponding to x
x GID "20" is missing from the group database. Please fix the problem x
x and restart SAM.


I am not sure what this is, I did a search online with no results. Anyone have any idea?
14 REPLIES
Wim Rombauts
Honored Contributor

Re: Odd error while trying to call SAM

At a very first thought, I would check /etc/group and see if there is a correct entry for GID 20 ("users" on my machine)
Wim Rombauts
Honored Contributor

Re: Odd error while trying to call SAM

... or if you have multiple user databases on your machine, maybe "grget -g 20" can be a help.
Fabio Ettore
Honored Contributor

Re: Odd error while trying to call SAM

Hi,

it seems that something is missing into /etc/group file, 20 usually is the GID of group users. Do you have the entry for group users into /etc/group?

Please post the /etc/group file.

Best regrads,
Fabio
WISH? IMPROVEMENT!
Jarheadatheart
Regular Advisor

Re: Odd error while trying to call SAM

Entry for "users" is:

users::112:root,milnel

none of my systems have the default GID of 20 it was removed as a requirement.
Wim Rombauts
Honored Contributor

Re: Odd error while trying to call SAM

And what if you create one, albeit just for a few minutes ?

Add "dummygr::20:" to /etc/group and try your SAM
Jarheadatheart
Regular Advisor

Re: Odd error while trying to call SAM

Attached is /etc/group
Pete Randall
Outstanding Contributor

Re: Odd error while trying to call SAM

SemperFi Jarhead,

Your group file does not have a group 20. You could try adding one, but I think the better solution might be to make sure you're invoking SAM as root!

Ooorah!


Pete

Pete
Patrick Wallek
Honored Contributor

Re: Odd error while trying to call SAM

>>none of my systems have the default GID of 20 it was removed as a requirement.

What kind of requirement? Security? Oftentimes the default users and groups are there for a reason and removing them could have unexpected consequences.
Jarheadatheart
Regular Advisor

Re: Odd error while trying to call SAM

Semper Fi Brother! (Pete)

Pete, I can call sam as root.

but why can't I call it logged is as myself? I can on all of my other systems and the /etc/group files are the same on all of the systems? That is what is bothering me.
Fabio Ettore
Honored Contributor
Solution

Re: Odd error while trying to call SAM

Hi,

users::112:root,milnel

So group users has GID 112 instead of 20. What about the fourth field into the /etc/passwd file? Which GID do system's users have? 20 or 112?

Best regards,
Fabio
WISH? IMPROVEMENT!
Jarheadatheart
Regular Advisor

Re: Odd error while trying to call SAM

Pat, yes it is a security thing for the company.

I did this on all of my other systems and I can call SAM as myself though.
Pete Randall
Outstanding Contributor

Re: Odd error while trying to call SAM

And the other systems have no group 20???


Pete

Pete
Jarheadatheart
Regular Advisor

Re: Odd error while trying to call SAM

Pete, no none of my systems have GID 20.


Fabio!!!! That was it... My bad guys! Sorry for wasting everyones time!!!

I totally forgot to check the /etc/passwd file for GId's leftover that were 20...
Jarheadatheart
Regular Advisor

Re: Odd error while trying to call SAM

Thanks Guys!