From owner-freebsd-stable@FreeBSD.ORG Mon Oct 25 21:38:01 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8413310656A7 for ; Mon, 25 Oct 2010 21:38:01 +0000 (UTC) (envelope-from h.schmalzbauer@omnilan.de) Received: from host.omnilan.net (s1.omnilan.net [62.245.232.135]) by mx1.freebsd.org (Postfix) with ESMTP id 0D1E98FC14 for ; Mon, 25 Oct 2010 21:38:00 +0000 (UTC) Received: from titan.flb.omnilan.net (titan.lo4.flb.omnilan.net [172.21.1.150]) (authenticated bits=0) by host.omnilan.net (8.13.8/8.13.8) with ESMTP id o9PLbxsM017270 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 25 Oct 2010 23:37:59 +0200 (CEST) (envelope-from h.schmalzbauer@omnilan.de) X-Authentication-Warning: smtp.dmz.omnisec.de: Host titan.lo4.flb.omnilan.net [172.21.1.150] claimed to be titan.flb.omnilan.net Message-ID: <4CC5F8B7.5030706@omnilan.de> Date: Mon, 25 Oct 2010 23:37:59 +0200 From: Harald Schmalzbauer Organization: OmniLAN User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; de-DE; rv:1.9.2.8) Gecko/20100906 Thunderbird/3.1.2 MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <4CC5F489.50403@omnilan.de> In-Reply-To: <4CC5F489.50403@omnilan.de> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig030BC0BA05B1723CF1CF8054" Subject: Re: POSIX file permission (understanding) problem? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2010 21:38:01 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig030BC0BA05B1723CF1CF8054 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable schrieb Harald Schmalzbauer am 25.10.2010 23:20 (localtime): > Hello, >=20 > am I complete stupid or is there a serious problem with 8.1-RELEASE: > I can write files which I have no write access to, if I have write > access to the directory of the file. =2E.. > This means file permission mode is irrelevant if the user has write > access to the directory of the file. I can hardly believe that this is > intentional. Why does a write lead to owbership changes? > How should I give users write access to directories but prohibit > deliting particular files? Do I have to use uunlnk flag? > Sorry for that basic question, but I must have been missing something i= n > the last 10 years... Sorry for the noise, digging through lots of not-deep-enough information I finally found: http://content.hccfl.edu/pollock/aunix1/filepermissions.htm Now I can remember that I already was upset about this, one decade ago, and there was a reason not to use the POSIX permission model at all for so long. In that particular case I'll have to use the uchg flag. Sorry again for the noise! --------------enig030BC0BA05B1723CF1CF8054 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkzF+LcACgkQLDqVQ9VXb8joMQCfUmAMzZiAqFbAvIwIiIrZFVy/ eZEAmQFNOS9QEqmjNJ47Jq9d/wn3qPlZ =RFgP -----END PGP SIGNATURE----- --------------enig030BC0BA05B1723CF1CF8054--