LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Export NFS (https://www.linuxquestions.org/questions/linux-networking-3/export-nfs-416469/)

Frunktz 02-17-2006 08:07 AM

Export NFS
 
Hi
How I can export a directory to only a range of IP?
I try something like that but not work, I have the same error(Permission denied)
Code:

/mnt/share          192.168.1.0/24(ro,root_squash)
or
/mnt/share          192.168.1.*(ro,root_squash)


marozsas 02-17-2006 09:15 AM

I have a similar working setup here. It uses the first form you tried (net/mask value).

Are you sure the reason is the net/mask specification ?
Have you tried to use a wildcard ? I mean:
Code:

/mnt/share *(ro,root_squash)
If works for everyone, go back the net/mask value, re-export with "exportfs -r", try again and it still not work, give us the output of exportfs above.

see'ya,

Frunktz 02-17-2006 12:50 PM

I don't have exportfs..maybe it's normal in Debian?
To update the changes I type
/etc/init.d/nfs-user-server restart.

I think 99% the problem is the wildcard/mask, because if I change the ip (192.168.1.0/24) to 192.168.1.30 (a client of my subnetwork that can access to that pc) work.

marozsas 02-20-2006 04:45 AM

Quote:

I don't have exportfs..maybe it's normal in Debian?
I don't know about Debian, but it should be. exportfs is the program that setup the nfs shares on the fly. Whitout exportfs it's impossible to see what is exported and how.

May be you can post this problem at Debian's forum, in this same site.

sorry,

Frunktz 02-20-2006 04:50 AM

Well, I debian I don't have that tools either in the repository...

brainiac 02-20-2006 09:34 PM

How about /mnt/share 192.168.1.0/255.255.255.0(ro,root_squash) ?


All times are GMT -5. The time now is 02:48 AM.