# How do I set up a Windows NFS share so that I can view it's contents on Linux?

My NFS server is a Windows XP SP3 box with the Microsoft Windows Services for Unix installed.

I have a share configured under C:\NFS with the share name NFS and ANSI encoding.

Anonymous access is enabled, with the anon UID/GID set to 0/0. Additionally, I've set ALL MACHINES to Read-Write, and checked the checkbox to Allow root access.

My first NFS client is a Ubuntu 10.04 box, with nfs-common installed. Running

sudo mount -t nfs 1.1.1.1:/NFS /home/user/NFS


succeeds, but when I attempt to view the folder (even as root), it tells me that I do not have the permissions necessary to view the contents of the folder.

My second NFS client is an IBM iSeries box running OS/400 V5R3. I used the mount command below:

MOUNT TYPE(*NFS) MFS('1.1.1.1:/NFS') MNTOVRDIR('/PARENT/NFS') OPTIONS('rw,nosuid,retry=5,rsize=8096,wsize=8096,timeo=20,retrans=2,acregmin=30,acregmax=60,acdirmin=30,acdirmax=60,soft') CODEPAGE(*BINARY *ASCII)


which also mounts successfully. Attempting to

WRKLNK '/PARENT/NFS'


and use Option 5 to enter the directory yields a Not authorized to object error - even though I am a security officer with the *ALLOBJ special authority.

My gut says that it's a problem with the Windows share, but I don't know what it could be. Do you have any suggestions?

-
why don't you use simply a *nix box for a nfs server? Wouldn't be much easier? –  Pier Jun 16 '10 at 15:08
I'm doing some security testing, and it involves situations where the NFS server is on Windows - but I can't break it until I get it working initially! Believe me, it would be far easier to keep things homogeneous, but that defeats the point in this situation. –  hewhocutsdown Jun 16 '10 at 15:44
How is the NFS share mounted over the linux box? What does "mount" says? And the logs? –  Pier Jun 16 '10 at 16:40
Not sure what the question is there; I use the mount command specified above, which works successfully. I use Nautilus as root to navigate to the folder that the share was mounted into, which shows an x and a lock icon on it. Attempting to enter the folder gives a permission denied error. –  hewhocutsdown Jun 16 '10 at 17:20
Almost +1'd your question, and then I saw you were using XP as a server system. –  Joel Coel Aug 31 '11 at 3:23

Any reason not to just use Samba on the *NIX box? That way you can either access shares on the *NIX box from Windows or mount Windows shares on the *NIX box.

"Microsoft Windows Services for Unix", somehow that gives me heartburn just reading it.

-