From owner-freebsd-current@FreeBSD.ORG Wed Nov 27 16:17:45 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5B93BACC; Wed, 27 Nov 2013 16:17:45 +0000 (UTC) Received: from s1.omnilan.de (s1.omnilan.de [217.91.127.234]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C0FEC2961; Wed, 27 Nov 2013 16:17:44 +0000 (UTC) Received: from titan.inop.wdn.omnilan.net (titan.inop.wdn.omnilan.net [172.21.3.1]) (authenticated bits=0) by s1.omnilan.de (8.13.8/8.13.8) with ESMTP id rARGHf7O005612 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 27 Nov 2013 17:17:41 +0100 (CET) (envelope-from h.schmalzbauer@omnilan.de) Message-ID: <52961B25.3020109@omnilan.de> Date: Wed, 27 Nov 2013 17:17:41 +0100 From: Harald Schmalzbauer Organization: OmniLAN User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; de-DE; rv:1.9.2.8) Gecko/20100906 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: Julian Elischer Subject: Re: Feature request: sticky bit inheritance References: <5295DFAD.5070402@omnilan.de> <52960DB5.3090209@freebsd.org> In-Reply-To: <52960DB5.3090209@freebsd.org> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig7BB3F8551529996BE7A1F7A5" Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Nov 2013 16:17:45 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig7BB3F8551529996BE7A1F7A5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Bez=C3=BCglich Julian Elischer's Nachricht vom 27.11.2013 16:20 (localti= me): > On 11/27/13, 8:03 PM, Harald Schmalzbauer wrote: >> Hello, >> >> ever since I took a FreeBSD machine into production, acting as any kin= d >> of file server, I have to work arround the problem, that write access = to >> a directory implies unlinking (deleting) directory contents. > not sure I fully understand what you mean by that.. > Do you mean write access implies delete access? yes.. > > This can be modified with the nounlink flag. The uunlink flags also prohibits the owner to delete his files as far as I know. I want to prohibt users from deleting =E2=80=9Cforeign=E2=80=9D f= iles, even if the user has write access to the parent directory (and I wanted to explain that I don't understand why anybody would want that a user with write access to a directory can delete files on which the user doesn't have write access). The sticky bit exactly does what I need (and should be the default behaviour in my opinion). But my problem is that the stick bit must be added to each single directory after creation, it's not inherited. I'd need every child directory of directories, who have the sticky bit set, also to have the sticky bit. The same behaviour as with the gid =E2=80= =93 it's the same as the parent has for new directories. Thanks, -Harry --------------enig7BB3F8551529996BE7A1F7A5 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.18 (FreeBSD) iEYEARECAAYFAlKWGyUACgkQLDqVQ9VXb8gm0ACgwEfrzXq2Os1DleK4thBC7ZWN +FUAoMscC2xD4BW/LXXH9+a0+wD7hxIM =5ZTM -----END PGP SIGNATURE----- --------------enig7BB3F8551529996BE7A1F7A5--