From owner-freebsd-questions Wed Oct 27 7:57:33 1999 Delivered-To: freebsd-questions@freebsd.org Received: from relay.ucb.crimea.ua (UCB-Async4-CRISCO.CRIS.NET [212.110.129.130]) by hub.freebsd.org (Postfix) with ESMTP id 45970153E3 for ; Wed, 27 Oct 1999 07:56:27 -0700 (PDT) (envelope-from ru@ucb.crimea.ua) Received: (from ru@localhost) by relay.ucb.crimea.ua (8.9.3/8.9.3/UCB) id RAA69689; Wed, 27 Oct 1999 17:54:41 +0300 (EEST) (envelope-from ru) Date: Wed, 27 Oct 1999 17:54:41 +0300 From: Ruslan Ermilov To: Michael Rothenberg Cc: freebsd-questions@freebsd.org Subject: Re: Stickybit (Was: Permissions for users in general) Message-ID: <19991027175441.A68182@relay.ucb.crimea.ua> Mail-Followup-To: Michael Rothenberg , freebsd-questions@freebsd.org References: <4.1.19991026211759.009434a0@mail.udel.edu> <26526.940948091@axl.noc.iafrica.com> <4.1.19991026211759.009434a0@mail.udel.edu> <19991027095853.E34924@relay.ucb.crimea.ua> <3.0.3.32.19991027095656.007296f0@slider> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <3.0.3.32.19991027095656.007296f0@slider>; from Michael Rothenberg on Wed, Oct 27, 1999 at 09:56:56AM -0400 X-Operating-System: FreeBSD 3.3-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Oct 27, 1999 at 09:56:56AM -0400, Michael Rothenberg wrote: > > Ok and here is sticky(8) exerpt: > > *A directory whose `sticky bit' is set becomes an append-only directory, > *or, more accurately, a directory in which the deletion of files is re- > *stricted. A file in a sticky directory may only be removed or renamed by > *a user if the user has write permission for the directory and the user is ^^^ > *the owner of the file, the owner of the directory, or the super-user. > *This feature is usefully applied to directories such as /tmp which must > *be publicly writable but should deny users the license to arbitrarily > *delete or rename each others' files. > *Any user may create a sticky directory. See chmod(1) for details about > *modifying file modes. > > This says that a file can be renamed by a user with write permission. Then > a few sentances later in the example it says something opposite????? Which > is it? If a dir is set sticky can a user with write permissions to that > directory rename a file? Doesn't make sence if they can... I would try it, > but I'm at work and we dont have FBSD here... }:( > Please re-read the above excerpt, and note the word ``and'' :-) -- Ruslan Ermilov Sysadmin and DBA of the ru@ucb.crimea.ua United Commercial Bank, ru@FreeBSD.org FreeBSD committer, +380.652.247.647 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message