PDA

View Full Version : Windows - Linux NFS connectivity.



DLloyd
2009-11-04, 14:31
Hello,

Does anyone here have experience with connecting a Windows client to a Unix server via NFS please?

I'm trying to eliminate Samba from the mix, and have installed NFS server onto my Debian box and have setup the /etc/exports file file. The client is Windows 7 with the Microsoft Client for NFS installed.

I can get a login prompt from the Debian server, but access is denied. Seems to be a problem with uid mapping from Windows to Linux (?).

I have tried using (rw,all_squash,anonuid=150,anongid=100) in /etc/exports to specify the uid/gid, but that didn't work.


Thanks!

mfie
2009-11-04, 15:08
I'm trying to eliminate Samba from the mix,


Why?



I can get a login prompt from the Debian server, but access is denied.


Don't know why Windows asks with a login prompt. There is no need for it with NFS. NFSv3 does not even support this.



I have tried using (rw,all_squash,anonuid=150,anongid=100) in /etc/exports to specify the uid/gid, but that didn't work.


With a Linux NFS Client that would work...
The share is listed within exportfs?

epoch1970
2009-11-04, 16:31
Perhaps you want to export to the whole world:
/export *(fsid=1,rw,async,all_squash,anonuid=1000,anongid= 1000)
or better to all machines on the local network:
/export 192.168.1.0/24(fsid=342,rw,...

Your uid/gid of 100 and 150 are uncommon. On most linuxes in think, the first "normal" user on a machine has uid/gid 1000/1000. In fact, on my debian lenny, uid 100 is sshd...
I suggest you change uid and gid to the ones of the human user of the machine.

Then you have to make sure the share exists, and that being squashed to the uid/gid you've defined allows you to read, enter directories, eventually delete files.

For starters, you can mount the export on the linux machine itself:
mount localhost:/export /some/place/else
If the path is wrong or access rights weird, you should see it.

You could also be facing an interoperability issue, but I can't help you with this.

agillis
2009-11-04, 16:46
Samba is one of the most reliable protocols out there. Why use NFS?

audiomuze
2009-11-09, 23:00
Samba is one of the most reliable protocols out there. Why use NFS?

Speed?