From owner-freebsd-net@FreeBSD.ORG Mon Jul 28 12:55:42 2014 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8E78E2C8 for ; Mon, 28 Jul 2014 12:55:42 +0000 (UTC) Received: from esa-annu.net.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id 56DED25CE for ; Mon, 28 Jul 2014 12:55:41 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: As4EAJxF1lODaFve/2dsb2JhbABZg2BXBIJ0yQYKhnJTAYEod4QDAQEBAwEBAQEgKyALBRYYAgINGQIpAQkmBggHBAEcBIgZCA2maJZ9F4EsjU8BARs0B4J5gVEFlyqBMYRDknqDZSEvB4EFOQ X-IronPort-AV: E=Sophos;i="5.01,749,1400040000"; d="scan'208";a="144791919" Received: from muskoka.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.222]) by esa-annu.net.uoguelph.ca with ESMTP; 28 Jul 2014 08:55:34 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id DD632B3EA2; Mon, 28 Jul 2014 08:55:34 -0400 (EDT) Date: Mon, 28 Jul 2014 08:55:34 -0400 (EDT) From: Rick Macklem To: "Russell L. Carter" Message-ID: <43564051.4211288.1406552134888.JavaMail.root@uoguelph.ca> In-Reply-To: <53D5BD71.40108@pinyon.org> Subject: Re: nfsd spam in /var/log/messages MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.201] X-Mailer: Zimbra 7.2.6_GA_2926 (ZimbraWebClient - FF3.0 (Win)/7.2.6_GA_2926) Cc: net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jul 2014 12:55:42 -0000 Russell L. Carter wrote: > Hi, > > Still a newbie here after more than ae decade off. This is most > likely a stupid question but I have invested an inordinate amount of > effort to figure it out with no success. That is, I have not > resorted > to digging down into the source code to understand the error message. > I will do so if I am the first person to ever see this. So the > question(s): > > In order to support my linux NFSv4 clients AND my freebsd-current > clients, after an extended boring trial and error session I ended up > with a freebsd server /etc/exports: > > # Linux can mount nfsv4 ONLY if the line is exactly as > # follows: Assuming /export is one file system on the server, put all the exports in a single entry, something like: V4: /export -sec=sys -network 10.0.10 -mask 255.255.255.0 /export/usr/src /export/usr/obj /export/usr/ports /export/packages /export/library -maproot=root OR you can just allow the clients to mount any location within the server file system using -alldirs like: V4: /export -sec=sys -network 10.0.10 -mask 255.255.255.0 /export -alldirs -maproot=root At least I think I got this correct;-) rick > This isn't about security so avert your eyes from the maproots. The > security holes here are galaxy wide, I know. There's even wifi > access > to this network! Clutch yer perls. > > Here is an example of the /var/log/messages spam: > > Jul 27 11:19:32 terpsichore mountd[669]: bad exports list line > /export/usr/obj > Jul 27 11:19:32 terpsichore mountd[669]: can't change attributes for > /export/usr/src: MNT_DEFEXPORTED already set for mount > 0xfffff8022c3fdcc0 > > How do I stop this? I have iterated through many possibilities, > to no avail. > > Best, > Russell > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to > "freebsd-net-unsubscribe@freebsd.org" >