1829403 Members
1305 Online
109991 Solutions
New Discussion

NFS sharing........???

 
Joe Profaizer
Super Advisor

NFS sharing........???

We have a /share drive which is local to our HP-UX 9000 box named rga6. This drive is NFS shared to our other HP-UX 9000 boxes rgab, rgac, rga8 and rga9. We have the same group names defined on all of the boxes but the group names do not have the same id's across boxes. i.e. group prdadm on rga6 is id 107 and on rgab it is 109. When we change the group on a file on rga6 to prdadm (107) and then look at the file on rgab it belongs to group weblogic (107) on rgab. Is there any way to make the file's group the same on rga6 and the other machines even though the group id is different on those boxes?

If the only recourse is to make all of the groups the same group id's across boxes, is there an easy way to do this?

Thanks!!
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor

Re: NFS sharing........???

Hi Joe:

As you have found, the user and group "name" is simply derived from /etc/passwd by mapping the uid and gid, repectively. That is, the inode contains only the numeric id.

I suggest you align your group id's on your systems. You will find that the 'find' commands '-group' option can help you "find" the files and directories in question.

Regards!

...JRF...
Jeff Machols
Esteemed Contributor

Re: NFS sharing........???

you can change the group id in sam, when you do this, sam will prompt if you want it to run a background process to change all file, select yes and will fix all the files for you, then you NFS should be ok
Helen French
Honored Contributor

Re: NFS sharing........???

Hi,

I would suggest you to configure NIS on your systems. Or else you have to align the same gid's across all systems.

Check this out for useful information about NIS:

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B1031-90043/B1031-90043_top.html&con=/hpux/onlinedocs/B1031-90043/00/00/16-con.html&toc=/hpux/onlinedocs/B1031-90043/00/00/16-toc.html&searchterms=NIS&queryid=20020103-083032

HTH,
Shiju
Life is a promise, fulfill it!
Deshpande Prashant
Honored Contributor

Re: NFS sharing........???

HI
Re-arranging the GID and UID on all servers involved will help you, if you do not want to use the NIS to give same functionality.

Thanks.
Prashant.
Take it as it comes.
Krishna Prasad
Trusted Contributor

Re: NFS sharing........???

I see you are also a SAP shop. I know that NIS can help but since I am also a SAP shop I understand why you don't want to run NIS for a system that only needs three - five logins per host.

This is what we do we create a file called /etc/passwd.map that is nothing but documentation for us.

We make sure all the sidadms and orasids are uniq. When we create a new user we first go to the /etc/passwd.map file and make sure that the ID is not used on any system. We add the entry in our doc file and then add the user on the system that needs it. This is quick and dirty NIS database.

To fix the problem where you have mis-match ID's accross the board. You will have to determine which uniq ID you want each user to be. Then fix every /etc/passwd and /etc/group file for each host. Then finally on the host that have to be changed you will have to change the ownership for the files that just have the numbers.

Since you are a SAP shop an example would be

chown -R sidadm:sapsys /sapmnt/SID
or
chown -R orasid:dba /oracle/SID

I would do this on a test or sandbox environment first and try use your existing production box as the master passwd and group file. That way production will not be impacted.
Positive Results requires Positive Thinking
harry d brown jr
Honored Contributor

Re: NFS sharing........???

Group names, as well as login names are equated to their guid and uid respectfully. So to have consistency, either make all the groups have the same guid or use NIS+, which will do it for you.

live free or die
harry
Live Free or Die