From owner-freebsd-questions@FreeBSD.ORG Mon May 30 17:00:00 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5FFF716A41C for ; Mon, 30 May 2005 17:00:00 +0000 (GMT) (envelope-from rebehn@ant.uni-bremen.de) Received: from antsrv1.ant.uni-bremen.de (antsrv2.ant.uni-bremen.de [134.102.176.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59AC743D48 for ; Mon, 30 May 2005 16:59:58 +0000 (GMT) (envelope-from rebehn@ant.uni-bremen.de) Received: from bremerhaven.ant.uni-bremen.de ([134.102.176.10]) by antsrv2.ant.uni-bremen.de with esmtp (Exim 4.42) id 1DcncB-0005Vb-IJ; Mon, 30 May 2005 18:59:47 +0200 Message-ID: <429B46A4.4010607@ant.uni-bremen.de> Date: Mon, 30 May 2005 19:00:20 +0200 From: Heinrich Rebehn User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Debian/1.7.8-1 X-Accept-Language: en MIME-Version: 1.0 To: Heinrich Rebehn References: <429B1A14.2000304@ant.uni-bremen.de> In-Reply-To: <429B1A14.2000304@ant.uni-bremen.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Spam-Report: Spam detection software, running on the system "antsrv2.ant.uni-bremen.de", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or block similar future email. If you have any questions, see the administrator of that system for details. Content preview: Heinrich Rebehn wrote: > Hi list, > > I have no luck trying to enable ACLs on my UFS2 filesystem: > > ################################################# > > root@antsrv1 [~] # mount -u -o ro /export/linux/root > root@antsrv1 [~] # mount|grep linux/root > /dev/da0s1a on /export/linux/root (ufs, NFS exported, local, read-only, > soft-updates) > > root@antsrv1 [~] # tunefs -a enable /export/linux/root > tunefs: ACLs set > root@antsrv1 [~] # tunefs -p /export/linux/root > tunefs: ACLs: (-a) enabled > tunefs: MAC multilabel: (-l) disabled > tunefs: soft updates: (-n) enabled > tunefs: maximum blocks per file in a cylinder group: (-e) 2048 > tunefs: average file size: (-f) 16384 > tunefs: average number of files in a directory: (-s) 64 > tunefs: minimum percentage of free space: (-m) 8% > tunefs: optimization preference: (-o) time > tunefs: volume label: (-L) > > root@antsrv1 [~] # mount -u -o rw /export/linux/root > root@antsrv1 [~] # mount|grep linux/root > /dev/da0s1a on /export/linux/root (ufs, NFS exported, local, soft-updates) > root@antsrv1 [~] # tunefs -p /export/linux/root > tunefs: ACLs: (-a) disabled > tunefs: MAC multilabel: (-l) disabled > tunefs: soft updates: (-n) enabled > tunefs: maximum blocks per file in a cylinder group: (-e) 2048 > tunefs: average file size: (-f) 16384 > tunefs: average number of files in a directory: (-s) 64 > tunefs: minimum percentage of free space: (-m) 8% > tunefs: optimization preference: (-o) time > tunefs: volume label: (-L) > > root@antsrv1 [~] # mount|grep linux/root > /dev/da0s1a on /export/linux/root (ufs, NFS exported, local, soft-updates) > root@antsrv1 [~] # > > ################################################################## > > As you can see, if i mount the fs r/o, i can enable ACLs, but as soon as > i remount r/w again, ACLs are disabled again. > According to the handbook, this should work. > What am i missing? > > root@antsrv1 [~] # uname -a > FreeBSD antsrv1.ant.uni-bremen.de 5.3-RELEASE-p15 FreeBSD > 5.3-RELEASE-p15 #13: Fri May 13 09:35:22 CEST 2005 > root@a [...] Content analysis details: (0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- Cc: freebsd-questions@freebsd.org Subject: [Almost solved] Cannot enable ACLs 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: Mon, 30 May 2005 17:00:00 -0000 Heinrich Rebehn wrote: > Hi list, > > I have no luck trying to enable ACLs on my UFS2 filesystem: > > ################################################# > > root@antsrv1 [~] # mount -u -o ro /export/linux/root > root@antsrv1 [~] # mount|grep linux/root > /dev/da0s1a on /export/linux/root (ufs, NFS exported, local, read-only, > soft-updates) > > root@antsrv1 [~] # tunefs -a enable /export/linux/root > tunefs: ACLs set > root@antsrv1 [~] # tunefs -p /export/linux/root > tunefs: ACLs: (-a) enabled > tunefs: MAC multilabel: (-l) disabled > tunefs: soft updates: (-n) enabled > tunefs: maximum blocks per file in a cylinder group: (-e) 2048 > tunefs: average file size: (-f) 16384 > tunefs: average number of files in a directory: (-s) 64 > tunefs: minimum percentage of free space: (-m) 8% > tunefs: optimization preference: (-o) time > tunefs: volume label: (-L) > > root@antsrv1 [~] # mount -u -o rw /export/linux/root > root@antsrv1 [~] # mount|grep linux/root > /dev/da0s1a on /export/linux/root (ufs, NFS exported, local, soft-updates) > root@antsrv1 [~] # tunefs -p /export/linux/root > tunefs: ACLs: (-a) disabled > tunefs: MAC multilabel: (-l) disabled > tunefs: soft updates: (-n) enabled > tunefs: maximum blocks per file in a cylinder group: (-e) 2048 > tunefs: average file size: (-f) 16384 > tunefs: average number of files in a directory: (-s) 64 > tunefs: minimum percentage of free space: (-m) 8% > tunefs: optimization preference: (-o) time > tunefs: volume label: (-L) > > root@antsrv1 [~] # mount|grep linux/root > /dev/da0s1a on /export/linux/root (ufs, NFS exported, local, soft-updates) > root@antsrv1 [~] # > > ################################################################## > > As you can see, if i mount the fs r/o, i can enable ACLs, but as soon as > i remount r/w again, ACLs are disabled again. > According to the handbook, this should work. > What am i missing? > > root@antsrv1 [~] # uname -a > FreeBSD antsrv1.ant.uni-bremen.de 5.3-RELEASE-p15 FreeBSD > 5.3-RELEASE-p15 #13: Fri May 13 09:35:22 CEST 2005 > root@antsrv1.ant.uni-bremen.de:/usr/obj/usr/src/sys/ANTSRV1 i386 > I found out what i was missing: kernel: WARNING: /export/linux/root was not properly dismounted After doing an fsck which found and corrected some errors, i tried again. Now tunefs reports: root@antsrv1 [~] # tunefs -p /export/linux/root tunefs: ACLs: (-a) disabled tunefs: MAC multilabel: (-l) disabled tunefs: soft updates: (-n) enabled tunefs: maximum blocks per file in a cylinder group: (-e) 2048 tunefs: average file size: (-f) 16384 tunefs: average number of files in a directory: (-s) 64 tunefs: minimum percentage of free space: (-m) 8% tunefs: optimization preference: (-o) time tunefs: volume label: (-L) Yet mount says: root@antsrv1 [~] # mount|grep linux/root /dev/da0s1a on /export/linux/root (ufs, NFS exported, local, soft-updates, acls) And ACLs *do* work: root@antsrv1 [/export/linux/root/debian/usr/local/share] # ls -ld wallpaper/ drwxrwxr-x+ 2 root wheel 512 May 30 16:05 wallpaper/ root@antsrv1 [/export/linux/root/debian/usr/local/share] # getfacl wallpaper #file:wallpaper #owner:0 #group:0 user::rwx user:rebehn:rwx group::r-x mask::rwx other::r-x User rebehn is able to write to the directory "wallpaper". Strange, that tunefs still reports that acls are disabled. --Heinrich