Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jun 2002 09:40:05 -0700 (PDT)
From:      "Jin Guojun[DSD]" <j_guojun@lbl.gov>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/39896: netmask 0xffffff00 no longer works in /etc/exports
Message-ID:  <200206271640.g5RGe51A075880@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

The following reply was made to PR bin/39896; it has been noted by GNATS.

From: "Jin Guojun[DSD]" <j_guojun@lbl.gov>
To: "Crist J. Clark" <cjc@FreeBSD.ORG>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/39896: netmask 0xffffff00 no longer works in /etc/exports
Date: Thu, 27 Jun 2002 09:38:14 -0700

 "Crist J. Clark" wrote:
 > 
 > On Wed, Jun 26, 2002 at 01:56:15PM -0700, Jin Guojun wrote:
 > [snip]
 > 
 > >       Somehow, netmask format in  /etc/exports is restricted to
 > >       ###.###.###.### only.
 > >       /data -maproot=bin: -network 131.104.48 -mask 255.255.255.0
 > >
 > >       eubie# kill -HUP `cat /var/run/mountd.pid`
 > >       eubie# mount eubie:/data /mnt
 > >       eubie#
 > >
 > >       The following format does not work any more
 > >       /data -maproot=bin: -network 131.104.48 -mask 0xffffff00
 > >
 > >       mountd does not complain, but silently denies to export this
 > >       partition:
 > >
 > >       eubie# kill -HUP `cat /var/run/mountd.pid`
 > >       eubie# mount eubie:/data /mnt
 > >       eubie:/data: Permission denied
 > >
 > >
 > > >How-To-Repeat:
 > >       add similar line to /etc/exports, restart mountd, and
 > >       mount this partition locally or remotely.
 > >
 > >       /data -maproot=bin: -network 131.104.48 -mask 0xffffff00
 > > >Fix:
 > >
 > >       Is any reason to make such change? or Is this a bug?
 > 
 > I can't reproduce this.
 > 
 >   # uname -r
 >   4.6-RELEASE
 >   # grep ^/export /etc/exports
 >   /export         -alldirs -ro -network 192.168.64 -mask 255.255.255.0
 >   # kill -HUP `cat /var/run/mountd.pid`
 >   # showmount -e | grep ^/export
 >   /export                            192.168.64.0
 > 
 > And on a different machine on that net, I can mount it fine.
 
 Are you sure that you understand or did things correctly? :-)
 (Assume that all lines you typed are not typo !!!)
 
 Your netmask is 255.255.255.0 not 0xffffff00. If not typo, plesse try
  0xffffff00 , which is asked in "How-To-Repeat" section.
 
 > --
 > Crist J. Clark                     |     cjclark@alum.mit.edu
 >                                    |     cjclark@jhu.edu
 > http://people.freebsd.org/~cjc/    |     cjc@freebsd.org
 
 -- 
 ------------ Jin Guojun ----------- v --- j_guojun@lbl.gov ---
 Distributed Systems Department		http://www.itg.lbl.gov/~jin
 M/S 50B-2239				Ph#:(510) 486-7531 Fax: 486-6363
 Lawrence Berkeley National Laboratory,	Berkeley, CA 94720

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206271640.g5RGe51A075880>