From owner-freebsd-questions@FreeBSD.ORG Sat Apr 4 10:24:39 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9526385E for ; Sat, 4 Apr 2015 10:24:39 +0000 (UTC) Received: from mail-ig0-x230.google.com (mail-ig0-x230.google.com [IPv6:2607:f8b0:4001:c05::230]) (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 56750603 for ; Sat, 4 Apr 2015 10:24:39 +0000 (UTC) Received: by igcau2 with SMTP id au2so76754495igc.1 for ; Sat, 04 Apr 2015 03:24:38 -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=hmmrCxnH7qTwuaZt5evLIl1rxRUmwah0OxZ4ViqS8qo=; b=0zQ57KR2ZLIvgfvm+MEdrRwLrlBt+362/Udd+kufngk9tjeCSqrGDtzgYo49YEL8na mr5GQojDJNV7jPvUUxgr8ZETPVRcEx0D1g0J1RnDSUitmGxzqVjoFi7ubAf36EPx+zTv e0pHsXXOHIsquVMQnFcvph9mVAOMTdGpl42pPaS50S9DhFNt4CqGbvL+GSN2BIoWUdT+ cZeIw7Tu+H6iXA/GIm6W3Jng0fzyRqGTiGcvy8CxVp9fIr0Sbw8Gkq/FRZzO7NaPye50 O/TETqGmXhCb5CKBb1G5uyAjAKIC6d5ICQui3tzHs43P3jsZPjWM6QyQtKOmeoXtO7p7 l2Hw== MIME-Version: 1.0 X-Received: by 10.50.129.9 with SMTP id ns9mr10150403igb.24.1428143078844; Sat, 04 Apr 2015 03:24:38 -0700 (PDT) Received: by 10.64.208.106 with HTTP; Sat, 4 Apr 2015 03:24:38 -0700 (PDT) In-Reply-To: References: Date: Sat, 4 Apr 2015 03:24:38 -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 10:24:39 -0000 On Sat, Apr 4, 2015 at 3:02 AM, Istv=C3=A1n H=C3=B3bor wrote: > Well, I'm not using nfs, its just a mounting option for my zpool, and I > would like to delete some files from that pool, locally. Of course, I'm > logged in as root. > > Is it necessary to use nfs parameter when drive is local to server ? If you remove it , can you change mode ? Mehmet Erol Sanliturk > 2015-04-04 11:56 GMT+02:00 Mehmet Erol Sanliturk > : > >> >> >> 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 didn= t >>> 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 o= r >> 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 chang= e >> 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 >> >> >> >> > > > Istvan >