From owner-freebsd-stable Tue Jan 15 18:11:22 2002 Delivered-To: freebsd-stable@freebsd.org Received: from wall.polstra.com (wall-gw.polstra.com [206.213.73.130]) by hub.freebsd.org (Postfix) with ESMTP id 847D337B400 for ; Tue, 15 Jan 2002 18:11:19 -0800 (PST) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.11.3/8.11.3) with ESMTP id g0G2Au202938; Tue, 15 Jan 2002 18:10:56 -0800 (PST) (envelope-from jdp@wall.polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.11.6/8.11.0) id g0G2At248672; Tue, 15 Jan 2002 18:10:55 -0800 (PST) (envelope-from jdp) Date: Tue, 15 Jan 2002 18:10:55 -0800 (PST) Message-Id: <200201160210.g0G2At248672@vashon.polstra.com> To: stable@freebsd.org From: John Polstra Cc: swb@grasslake.net Subject: Re: Group executable bit quit working? In-Reply-To: <009d01c19dfd$a434b950$021ea8c0@twinstar> References: <009d01c19dfd$a434b950$021ea8c0@twinstar> Organization: Polstra & Co., Seattle, WA Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In article <009d01c19dfd$a434b950$021ea8c0@twinstar>, Shawn Barnhart wrote: > Just upgraded three systems to 4.5 RC-6 this weekend and I seem to have lost > the ability execute shell scripts or perl scripts that are group executable > only. > > The scripts run otherwise if I make them executable by the owner, but having > them g+x doesn't seem to be enough anymore. I have another system running > 4.4 that also exhibits this behavior, so its confusing me. > > The scripts in question the 4.5-RC system have been running for years with > permissions of 654. It works for me. However, I have an idea about why you might think it's broken. Let's say the file's modes are 654 (rw-r-xr--) and you are a member of the file's group. If you are also the owner of the file, you will not be able to execute it. But if you are _not_ the owner, you will be able to execute it. It's counter-intuitive, but the rule is that if you own the file, the owner permissions are used and the group permissions are ignored. I believe this is the traditional behavior, as I remember seeing it on other Unix systems at least 10 years ago. John -- John Polstra John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message