From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Brewer, Edward" Newsgroups: gmane.os.tru64.managers Subject: ADDENDUM: ACL question Date: Wed, 24 Jul 2002 15:22:27 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <7B386924C5CAD0428322085D0F0F766F0163B53B@ODEXC4> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: main.gmane.org 1027538996 11410 127.0.0.1 (24 Jul 2002 19:29:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 24 Jul 2002 19:29:56 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.33 #1 (Debian)) id 17XRpb-0002xs-00 for ; Wed, 24 Jul 2002 21:29:55 +0200 Original-Received: (qmail 7516 invoked by uid 5); 24 Jul 2002 19:23:30 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 7456 invoked from network); 24 Jul 2002 19:23:29 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 24 Jul 2002 19:23:29 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GZR006WWPV13O@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 24 Jul 2002 15:23:29 -0400 (EDT) Original-Received: from ims2.hub.nih.gov (ims2.hub.nih.gov [128.231.90.112]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GZR00FLPPUWAE@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 24 Jul 2002 15:23:20 -0400 (EDT) Original-Received: by ims2.hub.nih.gov with Internet Mail Service (5.5.2655.55) id ; Wed, 24 Jul 2002 15:23:14 -0400 Content-return: allowed Original-To: "'Tru64-Unix-Managers \(E-mail\)" X-Mailer: Internet Mail Service (5.5.2655.55) Xref: main.gmane.org gmane.os.tru64.managers:1082 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:1082 Admins, As usual there came an answer after I figured out my original question, that summed it all up and helped craft a better way to accomplish what I want. Email correspondence from Ann Majeske "Brewer, Edward" wrote: Ann, Thanks, I found it also in the Tru64 5.1 manual. I was attempting to use acl's to force all new files created by the owner of the directory to read only. Example drwxr-x--- bogus dba bogus I then set setacl -d -u user:bogus:r-- bogus setacl -d -u group:dba:rw- bogus then cd to bogus there I copied a file from /var/tmp/ called before.txt -rw-r--r-- root system before.txt it resulted with what I posted... thanks for your reply, Lee >From ann: One tricky thing about the default ACLs is that they are required by the specification to contain the three base entries (i.e. the permission bits) in addition to the entries that you set specifically. If you don't supply these entries they default to the current permission bits of the directory, which probably isn't what you want files to inherit! So, if you set the default ACL as follows it will probably do what you want: setacl -d -u user::r--,group::r--,other::r-- bogus Of course, the owner of the file always has the capability of changing the ACL (as well as the permission bits), so this will only work if the owner doesn't decide to go change the ACL or the permission bits on his own. Also, remember that in UNIX the ability to delete a file is based on the write permission of the directory containing the file, not the file itself. So if a user has permission to create a file in a directory he also has permission to delete any file in that directory, even if the file is set read-only. Ann Summary: I am very use to the old unix permission scheme, so with ACL's I miss the forest for the trees... I never thought of just using setacl -d -u user::r-- I thought user::, group::, and other:: were only managed by the old scheme. Thanks again, Lee Brewer