NFS shares sec options on same share

From: Michael Pye (michael@ulimit.org)
Date: Fri Feb 11 2005 - 10:43:47 EST


Hi

Solaris 7 NFS client and Solaris 7 NFS server. I want to offer one share
out to several different clients, some clients using the sec=sys mode,
and one client using the sec=none mode.

This should allow me to have valid uids on both systems for the sec=sys
mode clients, but the sec=none client I map all uids accessing the NFS
server to one uid (in this example uid 101).

This is my /etc/dfs/dfstab:

share -F nfs -o sec=sys,rw=client1,root=client1,sec=none,rw=client2,anon=101,ro -d "share" /export/site

However whilst client1 sees the share fine and uids match up, client2
when attempting to access the mounted share gives:

NFS access failed for server server1: error 7 (RPC: Authentication error)
NFS access failed for server server1: error 7 (RPC: Authentication error)

Can I not mix sec modes on one share ? The man page for share_nfs says I
can. Things work fine if I seperate the sec modes onto two different
shares.

share -F nfs -o rw=client1,root=client1 -d "share" /export/site
share -F nfs -o sec=none,rw=client2,anon=101 -d "share2" /export/site2

but I ideally want to share out the one share, but with certain hosts
using sec=sys and another client using sec=none. Is this possible ?
Thanks,

--
Michael Pye
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:30:09 EDT