From owner-freebsd-questions@FreeBSD.ORG Tue Oct 7 03:16:09 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 5AE725CB for ; Tue, 7 Oct 2014 03:16:09 +0000 (UTC) Received: from forward4m.mail.yandex.net (forward4m.mail.yandex.net [IPv6:2a02:6b8:0:2519::3:13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0D9D73A6 for ; Tue, 7 Oct 2014 03:16:08 +0000 (UTC) Received: from web23m.yandex.ru (web23m.yandex.ru [37.140.138.114]) by forward4m.mail.yandex.net (Yandex) with ESMTP id CD50B232071F for ; Tue, 7 Oct 2014 07:16:04 +0400 (MSK) Received: from 127.0.0.1 (localhost [127.0.0.1]) by web23m.yandex.ru (Yandex) with ESMTP id 4B4DF25A0604; Tue, 7 Oct 2014 07:16:04 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1412651764; bh=nRRoD5VXL1TnPiqlJXsB6UKvfccNF7jYHmZk3510gvI=; h=From:To:Subject:Date; b=BbO55NdHK6noDQRw0z45JPhmYZcfqWe34dIEVyU1Rd3+PYukbOQKnqp6Vl+CU4cCB 86d/pdc+rriR4UCVuS57PXd7RyUIcJXZDU6eqI3ZOnywshRQPhp1ijFYQkZ0Jolxup T4H5WqAoK+Sc6WEcXnca6oGmXQ8H2TDx4tGsNn/A= Received: from tsn109-201-152-246.dyn.nltelcom.com (tsn109-201-152-246.dyn.nltelcom.com [109.201.152.246]) by web23m.yandex.ru with HTTP; Tue, 07 Oct 2014 07:16:03 +0400 From: Martin To: freebsd-questions@freebsd.org Subject: Problems accessing a Linux NFS share as a normal user MIME-Version: 1.0 Message-Id: <164141412651763@web23m.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Tue, 07 Oct 2014 05:16:03 +0200 Content-Transfer-Encoding: 7bit Content-Type: text/plain 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:16:09 -0000 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?