From owner-freebsd-questions@FreeBSD.ORG Fri Dec 11 14:42:01 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB8D51065694 for ; Fri, 11 Dec 2009 14:42:01 +0000 (UTC) (envelope-from macerl@telkomsa.net) Received: from rrba-ip-smtp-2-4.saix.net (rrba-ip-smtp-2-4.saix.net [196.25.240.219]) by mx1.freebsd.org (Postfix) with ESMTP id 6A4358FC1B for ; Fri, 11 Dec 2009 14:42:01 +0000 (UTC) Received: from toutatis.localnet (dsl-242-84-47.telkomadsl.co.za [41.242.84.47]) by rrba-ip-smtp-2-4.saix.net (Postfix) with ESMTP id 8512E4862 for ; Fri, 11 Dec 2009 16:41:59 +0200 (SAST) From: Richard Mace To: freebsd-questions@freebsd.org Date: Fri, 11 Dec 2009 16:41:30 +0200 User-Agent: KMail/1.12.4 (FreeBSD/8.0-RELEASE; KDE/4.3.4; i386; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200912111641.30987.macerl@telkomsa.net> Subject: Cannot write to nfsv4 share X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Dec 2009 14:42:01 -0000 I am running 8.0-RELEASE. I am able to mount an nfsv4 share on a Debian GNU/Linux server, but I cannot write to it. I realise that nfsv4 is experimental on FreeBSD, but I am tantalisingly close to getting it working and thought that someone here could advise, or point me to some (web) reference. I have googled but have not found anything relevant to this problem. I have enabled the following in /etc/rc.conf: nfs_client_enable="YES" nfsuserd_enable="YES" nfsuserd_flags="-domain localdomain" nfscbd_enable="YES" I have passed the domain "localdomain" to nfsuserd via nfsuserd_flags because that is what it is set to (by default) via /etc/idmapd.conf on the Linux server. I mount the remote location using: # mount -t nfs -o nfsv4,rw 192.168.x.x:/freeagent /mnt which succeeds.... (either with or without the "rw" option) # mount /dev/ad2s1a on / (ufs, local) devfs on /dev (devfs, local, multilabel) /dev/ad2s1e on /tmp (ufs, local, soft-updates) /dev/ad2s1f on /usr (ufs, local, soft-updates) /dev/ad2s1d on /var (ufs, local, soft-updates) 192.168.x.x:/freeagent on /mnt (newnfs) When I execute an ls -al on /mnt all the directories have the correct permissions, except for one.... (NOTE THE GROUP -- 32767) drwx------ 2 root 32767 16384 Jul 5 12:28 lost+found If I try, either as root, or as my regular user account, to write to the drive I get $ cd /mnt $ touch junk touch: junk: Permission denied I have checked the directory permissions for my user and they are correct. I use the same username (and group) on both the FreeBSD desktop and the Linux (NFS4) server and, according to the permissions, I own and should be able to write to the share: $ cd /mnt $ ls -ald . drwxr-xr-x 7 username username 4096 Dec 11 13:37 . I can successfully read from the nfs4 mounted drive, but I cannot write to it. Has anyone got any idea where I have gone wrong. (If I boot to Linux on the same client I can successfully mount and read/write, so I'm reasonably certain the server side is set up correctly.) -Richard