From owner-freebsd-questions@FreeBSD.ORG Sat Apr 4 09:56:11 2015 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 95A80222 for ; Sat, 4 Apr 2015 09:56:11 +0000 (UTC) Received: from mail-ig0-x22c.google.com (mail-ig0-x22c.google.com [IPv6:2607:f8b0:4001:c05::22c]) (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 58779169 for ; Sat, 4 Apr 2015 09:56:11 +0000 (UTC) Received: by igbqf9 with SMTP id qf9so108070968igb.1 for ; Sat, 04 Apr 2015 02:56:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=cKE6cGRf0pbXw7YH5Dr432yCl8ObrftOF+P82mR9qYU=; b=tmHuK3nM7driKthGpZlt7Ife/fiSWpIVTc46WzEpuKaVp46x8pQ8bWvNgCrVylAeWh R4eZQFgyORhEqU4XXRUgobt557Ec+Ub+YEny6mgETAiRTBiRVFm4mII/+mnpRF+v5G35 oKPul1WyVddJCUI+sYfbc6Exxyp0jUqVhB85Scnx+CQJtwpjDEa0AQQfLYAWcb0UUZ8/ XvZuQG6WHOlYn5UMXWOJf8yoWe1ma0jJHV4yUqmbNjNflhtExu2EQ1AjASSga6Swsasq zqsiNeVPBwHt4y8j8wYauzJK56T6HsUWBg4p6434n1oELbBk6HjB19I8s1ePrYnAzFBN ce9g== MIME-Version: 1.0 X-Received: by 10.50.253.12 with SMTP id zw12mr33246485igc.24.1428141370144; Sat, 04 Apr 2015 02:56:10 -0700 (PDT) Received: by 10.64.208.106 with HTTP; Sat, 4 Apr 2015 02:56:10 -0700 (PDT) In-Reply-To: References: Date: Sat, 4 Apr 2015 02:56:10 -0700 Message-ID: Subject: Re: nfs4acl problems on zfs From: Mehmet Erol Sanliturk To: =?UTF-8?B?SXN0dsOhbiBIw7Nib3I=?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: FreeBSD Questions Mailing List 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: Sat, 04 Apr 2015 09:56:11 -0000 On Sat, Apr 4, 2015 at 2:45 AM, Istv=C3=A1n H=C3=B3bor wrote: > Hi Gents, > > I have a problem with a couple of files, I can't delete or modify them.. = I > have a zpool named rpool, mounted with nfs4acl option.. > for example: > > rpool on /mnt/rpool (zfs, local, nfsv4acls) > > *nas4free: bin # getfacl rcp* > *# file: rcp* > *# owner: root* > *# group: wheel* > * owner@:r-x---aARWcCos:------:allow* > * group@:r-x---a-R-c--s:------:allow* > * everyone@:r-x---a-R-c--s:------:allow* > *nas4free: bin # rm -f rcp * > *rm: rcp: Operation not permitted* > > ls: -r-sr-xr-x 1 root wheel 20464 Jul 11 2014 rcp* > > rm -f rcp > rm: rcp: Operation not permitted > > Soo, what can I do, instead of recreate the zpool? cmod or setfacl didnt > work.. > > > Istvan > _______________________________________________ > > Change mode in server , not in client . My opinion is that there are serious problems in NFS programming both in FreeBSD and Linux . I am creating a file myself in client , I am not able to change its mode in the client . In server , if logged in as "user" , it is not possible to change mode or owner of files created by clients although owner of the directories of server is belong to "user" . My solution is to log in server as "root" and when it is necessary change file owner and mode in server . If you like you may use "sudo" instead of logging as "root" when it is not suitable . . Thank you very much . Mehmet Erol Sanliturk