P-O Yliniemi
2010-Apr-23 22:01 UTC
[zfs-discuss] Accessing ZFS on OpenSolaris server, using a windows 7 client
Hello
I''m trying to access a NFS shared ZFS file system on my OpenSolaris box
using a Windows 7 client, but have problems with UID/GID mappings.
The cause for this test is that some stupid program requires a physical
(or as close to as possible) volume on the client for its storage. I
know it is possible by using iSCSI, but that''s not the solution we want
to use, since multiple clients need at least read access to this share.
I have installed the NFS client that comes with win 7 (pro), using "Turn
windows features on or off" from "Control Panel/Programs and
Features",
and I choosed to install both the client and the administration tool.
On the OpenSolaris box I used the usual zfs create command to create the
testshare and allow it to be mounted using NFS:
pfexec zfs create storage/testshare
pfexec zfs set sharenfs=on storage/testshare
peo at opensolaris-fs:/storage$ zfs get all storage/testshare|grep nfs
storage/testshare sharenfs on local
On the windows client I am then able to mount the NFS share using the
"mount" command (installed with the NFS client):
---
C:\Users\peo> mount \\opensolaris-fs\storage\testshare t:
t: is now successfully connected to \\opensolaris-fs\storage\testshare
The command completed successfully.
---
So far, so good ("mount_t_as_nfs"). I am able to access the share, but
have no permissions to create files within it from windows
("nfs_no_access").
Checking the properties for the NFS share "NFS Attributes", I notice
that the owner of the share is root (uid, gid = 0), and in the "NFS
Mount Options" view, I see that my windows client (and my user on that
machine) authenticates as uid, gid = -2
This is probably the source of the problem. I need some way to tell the
OpenSolaris server that UID=-2, GID=-2 on the client side should be
mapped to UID=0,GID=0 (or better, my own UID/GID which is 101/10).
The problem is not solved by giving the shared folder full access rights
(777).
Any ideas how to make NFS user mappings, either on the ZFS side, or the
windows side ?
Thanks in advance,
PeO
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mount_t_as_nfs.PNG
Type: image/png
Size: 11659 bytes
Desc: not available
URL:
<http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100424/d8677312/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nfs_no_access.PNG
Type: image/png
Size: 26537 bytes
Desc: not available
URL:
<http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100424/d8677312/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nfs_attributes.PNG
Type: image/png
Size: 21640 bytes
Desc: not available
URL:
<http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100424/d8677312/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nfs_mount_opts.PNG
Type: image/png
Size: 19945 bytes
Desc: not available
URL:
<http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100424/d8677312/attachment-0003.png>