[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: NFS



On Fri, Feb 25, 2005 at 02:53:20PM -0700, Chris wrote:
> I was setting up NFS the other day on Debian. I was under the impression 
> that I could put a asterics symbol * at the end of the IP address in 
> /etc/exports to specify that an entire range of IP addresses have access 
> to the folder.  Here is what I mean.  It would only work like this:
> 
> /var/www 192.168.0.100/255.255.255.0(rwx)
> 
> But I wanted to do it like this:
> 
> /var/www 192.168.0.*/255.255.255.0(rwx)
> 
The convention is to use the base address of the network as determined by
the netmask, which in your case would be 192.168.0.0 - I've never seen an
asterisk there. The netmask already makes the decision whether the "0" is
specific (as in 192.168._0_.0) or a wildcard (as in 192.168.0._0_) - no need
to do it yourself with '*'.

> Is there a way to do what I am trying to accomplish? Thanks for reading.
What you're trying to accomplish? I though it was already working when you
substituted the star with any valid IP of the network...? But concerning the
asterisk: I don't think so. Maybe you can shorten the netmask part (also a
commonly used syntax, although I don't know for sure if /etc/exports under-
stands it), so that it reads

/var/www 192.168.0.0/24(rwx)

but you won't get it any shorter than that.

Regards,

Jan
-- 
Jan C. Nordholz
<jckn At gmx net>

Attachment: signature.asc
Description: Digital signature


Reply to: