From owner-freebsd-current Wed Dec 4 23:51:22 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BDC7537B401 for ; Wed, 4 Dec 2002 23:51:20 -0800 (PST) Received: from hotmail.com (f25.pav0.hotmail.com [64.4.32.209]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CF2A43EC2 for ; Wed, 4 Dec 2002 23:51:20 -0800 (PST) (envelope-from oykai@msn.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 4 Dec 2002 23:51:20 -0800 Received: from 210.74.136.33 by pv0fd.pav0.hotmail.msn.com with HTTP; Thu, 05 Dec 2002 07:51:20 GMT X-Originating-IP: [210.74.136.33] From: "kai ouyang" To: Current@FreeBSD.org Cc: robert@fledge.watson.org Subject: Re: setfacl requirements? Date: Thu, 05 Dec 2002 15:51:20 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed Message-ID: X-OriginalArrivalTime: 05 Dec 2002 07:51:20.0502 (UTC) FILETIME=[19822560:01C29C33] Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, everybody, >From Robert N M Watson >(1) UFS_ACL isn't enabled Yes, I am sure that in my kernel config: options UFS_ACL options UFS_EXTATTR options UFS_EXTATTR_AUTOSTART >(2) Extended attributes aren't available on the file system (shouldn't > happen for UFS2, but might happen for UFS1 if you don't have > UFS_EXTATTR and appropriate configuration of EAs) I do as the "README.alcs" mkdir -p /usr/.attribute/system cd /.attribute/system extattrctl initattr -p /usr/ 388 posix1e.acl_access extattrctl initattr -p /usr/ 388 posix1e.acl_default >(3) The file system isn't mounted with the ACL option: either -o acls (or > acls in the fstab file), or more reliably, setting the "tunefs -a > enable" flag in the file system configuration. >For better or for worse, POSIX.1e defines that getfacl() will print the >current file permissions as an ACL if ACLs aren't available on the file >system. As such, you're probably just seeing the results of stat() >printed in an ACL form. I use UFS1. In DP1, the ACL works nice. But in DP2, I have never succeeded. in DP1, there is no need to add the 'acls' to 'fstab'. Anyway, I also add the 'acls' flag to 'fstab', but it fails, too. The system always say: Current#cd /usr/ Current#setfacl -m u:oyk:r src setfacl: acl_get_file() failed: Operation not supported Best Regards Ouyang Kai _________________________________________________________________ 享用世界上最大的电子邮件系统— MSN Hotmail。 http://www.hotmail.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message