From owner-freebsd-questions Wed Oct 27 18:29:59 1999 Delivered-To: freebsd-questions@freebsd.org Received: from alpha.pit.adelphia.net (alpha.pit.adelphia.net [24.48.44.2]) by hub.freebsd.org (Postfix) with ESMTP id 3F7D314F21 for ; Wed, 27 Oct 1999 18:29:41 -0700 (PDT) (envelope-from evstiounin@adelphia.net) Received: from evstiouninadelphia (surf15-132.pit.adelphia.net [24.48.53.132]) by alpha.pit.adelphia.net (8.9.2/8.9.2) with SMTP id VAA19858; Wed, 27 Oct 1999 21:28:58 -0400 (EDT) Message-ID: <004301bf20e4$6f4fdb40$84353018@evstiouninadelphia.net.pit.adelphia.net> From: "Mikhail Evstiounin" To: "Ruslan Ermilov" , "Michael Rothenberg" Cc: Subject: Re: Stickybit (Was: Permissions for users in general) Date: Wed, 27 Oct 1999 21:33:25 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -----Original Message----- From: Michael Rothenberg To: Ruslan Ermilov Cc: freebsd-questions@FreeBSD.ORG Date: Wednesday, October 27, 1999 10:01 AM Subject: Re: Stickybit (Was: Permissions for users in general) >At 09:58 AM 10/27/99 +0300, you wrote: >>> >>See sticky(8). >> >>-- >>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 > > >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. My interpretation: if ( ( the user has write permission for the directory && user is the owner of the file ) || ( the user is the owner of the directory ) || ( the user is the super-user ) ) Correct me if I am wrong. >*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... }:( > >-Michael > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message