From owner-freebsd-questions@FreeBSD.ORG Tue Oct 7 03:30:34 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7121E900 for ; Tue, 7 Oct 2014 03:30:34 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3BE44751 for ; Tue, 7 Oct 2014 03:30:33 +0000 (UTC) Received: from kabini1.local (rbn1-216-180-76-189.adsl.hiwaay.net [216.180.76.189]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id s973UQng024578 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Mon, 6 Oct 2014 22:30:27 -0500 Message-ID: <54335FC9.80405@hiwaay.net> Date: Mon, 06 Oct 2014 22:36:41 -0500 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Problems accessing a Linux NFS share as a normal user References: <164141412651763@web23m.yandex.ru> In-Reply-To: <164141412651763@web23m.yandex.ru> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2014 03:30:34 -0000 On 10/06/14 22:16, Martin wrote: > I am at the brink of pulling my hair out on this one. > > I have a Debian Linux box server that is sharing some directories on LAN using NFS. > > The /etc/export: > > /pub1/ foobox(crossmnt,rw,async,no_subtree_check) > > I can, as a normal user, on any Linux box on the LAN mount this directory and because it is shared as "rw" I can both read and write. > > However, I also need to mount this on a FreeBSD box as a normal user, not root. > > The directory is setup on the FreeBSD box in fstab: > > share:/pub1 /home/user/mnt/share/pub1 nfs noauto,rw 0 0 > > The user is in group "wheel" and "network", however he cannot mount whether he is using fstab or not. The 'nfs_client_enable="YES"' is in rc.conf too. > > $ mount mnt/share/pub1 > mount: mnt/share/pub1: unknown special file or file system > > Trying full path: > > $ mount /home/user/mnt/share/pub1 > [tcp] share:/pub1: Permission denied > > Trying without fstab: > > $ mount -t nfs share:/pub1 mnt/share/pub1 > [tcp] share:/pub1: Permission denied > > $ mount -t nfs share:/pub1 /home/user/mnt/share/pub1 > [tcp] share:/pub1: Permission denied > > I can mount and write without problems as root. > > How do I solve this? > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Try adding 'users' to your fstab arguments: 'noauto,rw,users' .... You might also check the permissions of the share mount-point on the host machine, w/ the share unmounted, that can give issues as well. I don't have a good sol'n for the latter problem, since I have the same non-root user on all boxen on my soho LAN, but I know it can be worked around .... $0.02, no more, no less .... -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.