1823370 Members
2755 Online
109654 Solutions
New Discussion юеВ

Group ID (GID)

 
Andr├й Lima
New Member

Group ID (GID)

Hi i've a doubt if i can create two groups tham same name bur diferents gid?

Ex: informix gid 100
informix gi 102

Because i have one server has installed with windows 2003 r2 and i active nfs service.

And i have two hpux servers, in first had a group informix gid 102 in another server had a group informix gid 100, but in microsoft windows only identify one gid.

Please help me!!!
7 REPLIES 7
Michael Steele_2
Honored Contributor

Re: Group ID (GID)

Why don't you move all the user's in 102 over to 100?

What you're asking to do is a basic violation.
Support Fatherhood - Stop Family Law
Andr├й Lima
New Member

Re: Group ID (GID)

Because the informix has installed in gid 100.

Can i have two groups with same name tham gid diferents?

Ex:

group gid
informix 100
informix 102
Dennis Handly
Acclaimed Contributor

Re: Group ID (GID)

>Because the informix has installed in gid 100.

What's the difference between the 100 and the 102? Just move one to the other.

>Can i have two groups with same name them gid different?

I don't see how. Who are you trying to fool? HP-UX or windows?

On HP-UX, it is the GID that is used, not the name, which is only used for displaying.
If your interface with windows is by the name, then the mapping from name to GID would probably pick the first number, 100.

So the safest is to fix one of your machines to match the other.
Andr├й Lima
New Member

Re: Group ID (GID)

Yes this is my problem, because i have informix databse software installed with gid 102 in production server tham the the test server with gid 100.

It's possible put one inside in other, sorry because my knowloge for hpux is basic.
Michael Steele_2
Honored Contributor

Re: Group ID (GID)

Here's a entry from /etc/passwd:

arushkin:Igljf78DS:142:102:Amy Rushkin:/usr/people/arushkin:/bin/csh
billybob:reljf78DS:132:100:Amy Rushkin:/usr/people/billybob:/bin/csh


a) grep 102 /etc/passwd

(* this will give you a list of all users with gid of 102 and maybe a little more. The gid is the 4 parameter. See above example. Only arushkin should be returned *)

b) vipw (* this will open /etc/passwd with the vi editor *)

c) change 102 to 100 for arushkin.

Do you need help with the 'vi' editor?
Support Fatherhood - Stop Family Law
Dennis Handly
Acclaimed Contributor

Re: Group ID (GID)

>Michael: b) vipw c) change 102 to 100 for arushkin.

Besides changing /etc/passwd and /etc/group, you need to hunt down and change all of the files with the wrong GID.

You can use find and chgrp to fix these:
# find / other-file-systems -group 102 -exec chgrp informix {} +

(This would be done after /etc/group changed.)
Michael Steele_2
Honored Contributor

Re: Group ID (GID)

Oops. Thanks!
Support Fatherhood - Stop Family Law