This works.

I did a quick test:

On my Mac, my user krdoor is uid 501 & gid 501

# id
uid=501(krdoor) gid=501(krdoor) groups=501(krdoor)
# uname -a
Darwin Krdoorski.local 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 
PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc


So now on the nfs server (opensolaris b93) I  created a user & group;

# groupadd -g 501 krdoor  
# useradd -u 501 -g 501 krdoor  

Then I create a zfs filesystem:

# zfs create main/nfstest

Activated nfs sharing:

zfs set sharenfs=rw,sec=sys main/nfstest

if only 1 ip address should have write access do:

zfs set sharenfs=...@192.168.254.30/32,sec=sys main/nfstest

Then I modified the permissions on /main/nfstest

# chown krdoor:krdoor /main/nfstest/

Now I can mount the nfs export via:

Krdoorski:~ krdoor$ mount -t nfs -o vers=3,T,P 10.100.150.176:/main/nfstest 
./nfs

and I do have write access:

Krdoorski:~ krdoor$ touch ./nfs/fileke3
Krdoorski:~ krdoor$ ls -als ./nfs/
total 1
1 drwxrwxr-x    2 krdoor  krdoor     6 Oct 30 20:00 .
0 drwxr-xr-x   64 krdoor  krdoor  2176 Oct 30 19:37 ..
0 -rw-r--r--    1 krdoor  krdoor     0 Oct 30 19:57 fileke
0 -rw-r--r--    1 krdoor  krdoor     0 Oct 30 19:59 fileke2
0 -rw-r--r--    1 krdoor  krdoor     0 Oct 30 20:00 fileke3
0 -rw-r--r--    1 krdoor  krdoor     0 Oct 30 19:54 test2

Kristof
-- 
This message posted from opensolaris.org

Reply via email to