On Thu, Aug 24, 2000 at 05:19:17PM -0500, Bret Hughes wrote:
> Gary Nielson wrote:
> 
> > I am trying to understand how to deal with users, groups and permissions
> > with directories that are mounted via nfs from a remote server. I am
> > mounting a subdirectory under Irix 6.5, using the xfs filesystem, from
> > Redhat 6.2.
> >
> > The uid and gids mean different things on the remote Irix box, so I am
> > getting the group "games" listed when I list all the files in the mounted
> > directory, but when viewed locally on the Irix box, the group is "users."
>
> Gary I have been struggling with this too.  Wat I have come to find out
> mainly from this list but from reading aand rereading the docs, is that
> NFS sends the userid groupid in all requests.  That is the numeric value and
> NOT the username and groupname.  I was told that this is just the way it
> works and that I need to set up NIS to keep the passwd files in sync.  I have
> done som prelimiary reading but have not had the chance to actually install
> NIS yet.

This is a two step process:
1)  Add the server to the NIS domain
2)  Make sure none of the uid's on the server conflict with NIS,
because the local uid's typically have precedence

To add the server to the NIS domain:
1) make sure ypbind is installed
2) domainname YOUR_NIS_DOMAIN_NAME
3) add 'domain YOUR_NIS_DOMAIN_NAME server NIS_SERVER_ADDR' to /etc/yp.conf
4) service ypbind start

To make that permanent, make sure ypbind starts up on boot
chkconfig --level 345 ypbind on

Then tell the initscripts about your domain name
echo "NISDOMAIN=YOUR_NIS_DOMAIN_NAME" >> /etc/sysconfig/network

BTW: Your NIS domain name is completely different, semantically, from
your DNS domain, but sometimes they are set to the same string.

-- 
Steve Borho                      Voice:  314-439-8300 ext:3042
Member of Technical Staff
Celox Networking Inc

Fortune of the day:
To be wise, the only thing you really need to know is when to say
"I don't know."



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to