From owner-freebsd-stable@freebsd.org Tue Jul 21 09:10:14 2015 Return-Path: Delivered-To: freebsd-stable@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 486659A7EE3 for ; Tue, 21 Jul 2015 09:10:14 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: from mail-wi0-x22e.google.com (mail-wi0-x22e.google.com [IPv6:2a00:1450:400c:c05::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D701A1BB9 for ; Tue, 21 Jul 2015 09:10:13 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: by wicgb10 with SMTP id gb10so49156148wic.1 for ; Tue, 21 Jul 2015 02:10:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:from:subject:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=EMhDlpKDksM7uBVXzjXsBO+R0LknUBtsscRTYRhp6E4=; b=Xn4z1XJDZTYK1b9HFYluTIGXIPhesMjQJdqn9XGtGpDP2JGgsRc0IGtRKHcgoyJzwb 0XySnBhgXH3Nuh/zRkgWrX3KVh1SuSaSaLIwxbxsX7ALcF00/C4QAsf3flpS50J1B3uf HuNWhC+KSM7wY7a++O7jgREZioDQhno1Plg+h50Jw2Ji+AmCvs9411wH1MAOno9u9fpJ PhhcEYQYSMm+XKHTABTL/vW6ppu1KxoYTb5rPLa74sI6Nb23PEhOQNlUQ1e68ntw8Bbj ex+55J3oIa1EJfkVvauuoInUGngTk8nh9O5SEUF6MrOicXq++XUTn7W2MV9OkIb+QrrL C2kA== X-Received: by 10.194.187.170 with SMTP id ft10mr63616572wjc.26.1437469812375; Tue, 21 Jul 2015 02:10:12 -0700 (PDT) Received: from Johans-MacBook-Air.local (92-70-102-130.glasvezel.netexpo.nl. [92.70.102.130]) by smtp.googlemail.com with ESMTPSA id q4sm35932743wju.14.2015.07.21.02.10.11 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 21 Jul 2015 02:10:11 -0700 (PDT) To: freebsd-stable@freebsd.org From: Johan Hendriks Subject: zfs allow and sharenfs X-Enigmail-Draft-Status: N1110 Message-ID: <55AE0C73.6060705@gmail.com> Date: Tue, 21 Jul 2015 11:10:11 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jul 2015 09:10:14 -0000 Hello all. I try with the use of zfs allow to create zfs datasets and share them over NFS as a regular user. If I use the zfs create command with the user I get the following errer. # zfs create zroot/usr/home/test-allow cannot share 'zroot/usr/home/test-allow': share(1M) failed filesystem successfully created, but not shared. The dataset is created, but no entry is made in /etc/zfs/export It looks like it can not create the /etc/zfs/exports file and do the mountd restart. If I create the dataset as the root user it creates the dataset and it shares it over NFS, this works well I issued zfs allow username clone,create,destroy,mount,share,sharenfs zroot/usr/home Am I missing something, or is it not possible to do this as a normal user. regards