From owner-freebsd-questions@freebsd.org Sun Jan 15 16:58:53 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 83B4CCB104B for ; Sun, 15 Jan 2017 16:58:53 +0000 (UTC) (envelope-from robroy@robroygregg.com) Received: from mail.robroygregg.com (173-13-147-189-sfba.hfc.comcastbusiness.net [173.13.147.189]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6C58A161A for ; Sun, 15 Jan 2017 16:58:53 +0000 (UTC) (envelope-from robroy@robroygregg.com) Received: from beak.h.net (beak.h.net [192.168.32.10]) by mail.robroygregg.com (OpenSMTPD) with ESMTP id c09395cf; Sun, 15 Jan 2017 08:58:45 -0800 (PST) Date: Sun, 15 Jan 2017 08:58:45 -0800 (PST) From: Robroy Gregg X-X-Sender: robroy@beak.h.net To: Alnis Morics cc: freebsd-questions@freebsd.org Subject: Re: NFS: "bad exports list line /home/alnis" In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jan 2017 16:58:53 -0000 Good day Alnis, (I second what Aaron Kaufman just mailed in, and I'll add a few more notes below...) On Sun, 15 Jan 2017, Alnis Morics wrote: > Hi, > > I'm trying to set up a very basic NFS share on 11.0-RELEASE-p7 but I can't > get beyond the error message "bad exports list line /home/alnis". Is your /home a symbolic link to /usr/home? If so, you'll have to export /usr/home/alnis instead of /home/alnis, or use nullfs(5) to make /usr/home appear as /home in a way which keeps the NFS server happy. > My /etc/exports file only has one line: > /home/alnis 10.0.0.5(rw) This (rw) part's the default and ought to be left out. When both /home and /home/alnis are regular directories (not symbolic links) on my computer, this exports line works: /home/alnis 10.0.0.5 And this exports line doesn't work; it yields the "bad exports list line /home/alnis," no matter what: /home/alnis 10.0.0.5(rw) > showmount -e > Exports list on localhost: > > > /etc/rc.conf: > rpcbind_enable="YES" > nfs_server_enable="YES" > mountd_enable="YES" You may wish to add two more NFS server lines to your rc.conf: rpc_lockd_enable="YES" rpc_statd_enable="YES" I don't think this'll have any bearing on your /etc/exports woes, but on the NFS client, it will allow programs which try to lock files to function normally (Firefox used to depend on this working, and maybe still does, for instance).