1833788 Members
2254 Online
110063 Solutions
New Discussion

not listing group id

 
SOLVED
Go to solution
Sajjad Sahir
Honored Contributor

not listing group id

when i am using id command it not showing
one group memeber name osa1
it is present in /etc/group file
14 REPLIES 14
Dennis Handly
Acclaimed Contributor

Re: not listing group id

Are you in 21 groups? There is a limit of 20.
Sajjad Sahir
Honored Contributor

Re: not listing group id

no maximum group number is 19
prod1# wc -l /etc/group
19
Sajjad Sahir
Honored Contributor

Re: not listing group id

dear dennis
this is the my group file please see it

root::0:root
other::1:root,hpdb
bin::2:root,bin
sys::3:root,uucp
adm::4:root,adm
daemon::5:root,daemon
mail::6:root
lp::7:root,lp
tty::10:
nuucp::11:nuucp
users::20:root
nogroup:*:-2:
smbnull::101:
hpsmh::102:
tftp::103:
hpsmc::104:
sshd::105:
dba::201:oracle
oinstall::200:
Dennis Handly
Acclaimed Contributor

Re: not listing group id

>one group member name osa1
>it is present in /etc/group file

Who is the user and what is the group?
(What is the output of id(1)?)
If the user is osa1, I don't see it in your group file, so it can only be the member of one group.
Sajjad Sahir
Honored Contributor

Re: not listing group id

i mean oinstall(sorry for os1)
Sajjad Sahir
Honored Contributor

Re: not listing group id

prod1# id
uid=0(root) gid=3(sys) groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),7
(lp),20(users)
prod1# id oracle
uid=200(oracle) gid=200(oinstall) groups=201(dba)
Dennis Handly
Acclaimed Contributor
Solution

Re: not listing group id

What's missing? Both root and oracle look fine.
Each is a member of gid and the ones in groups.
Sajjad Sahir
Honored Contributor

Re: not listing group id

Dear Dennis

oracle team is telling me they want to see from it root
i mean if we are using id then they have to see oinstall also
Peter Nikitka
Honored Contributor

Re: not listing group id

Hi,

reading your first question
>>
when i am using id command it not showing
one group memeber name osa1
it is present in /etc/group file
<<

and then your latest
>>
oracle team is telling me they want to see from it root
i mean if we are using id then they have to see oinstall also
<<

I don't them together with your /etc/groups file:
- there is no entry osa1
- oinstall has no additional members

So ask yourself
- which user- and groupnames are used by the oracle team?
And then
- check these entries in /etc/passwd and /etc/group
- add additional members to the group entries (last field, comm seperated) if needed

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Darrel Louis
Honored Contributor

Re: not listing group id

sajjad,

Let them try "id -P"

GoodLuck

Darrel
Dennis Handly
Acclaimed Contributor

Re: not listing group id

>i mean if we are using id then they have to see oinstall also

Then you need to add root to the oinstall group.
Sajjad Sahir
Honored Contributor

Re: not listing group id

Yes dennis u are right
but what do u mean by "Then you need to add root to the oinstall group."

Dennis Handly
Acclaimed Contributor

Re: not listing group id

>but what do you mean by "Then you need to add root to the oinstall group."

Either edit /etc/group directly and change the line to:
oinstall::200:root

Or try usermod(1M):
# usermod -G oinstall root

Unfortunately that probably will give you:
Login root is currently in use
Sajjad Sahir
Honored Contributor

Re: not listing group id

closed