lkml.org 
[lkml]   [1999]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: buglet in ext2 sticky bit?
Alexander Viro wrote:
>
> On Sun, 24 Oct 1999, Gabor Lenart wrote:
>
> > > AFAIK a file writable for everyone should be deletable when
> > > +t on the parent dir.
> >
> > I think no. In a directory with rights 0777 everyone remove any file as far
> > as I know. +t for directories make to deletable files in it only by its owner
> > (root can delete though). Correct me please, if I wrong.
>
> You are right. Sticky bit semantics is:
> if directory has sticky bit and
> you are not owner of the directory and
> you are not owner of the inode the link points to
> you are not permitted to remove the link
> otherwise
> permissions are calculated ignoring sticky bit.

Ob fancy permission bits on directories, what does the suid bit do on a
directory? I grok sgid (damn useful on /usr/local/* until a /usr/local
rpm undoes my ch{mod,own} work (I have that section 2775 (?, sgid),
group wheel)), and thanks for the clear expanation of the sticky bit
(1xxx?). I don't have easy access to good unix literature and I was
unable to discover suid's effects on a directory myself.

TIA
Bill
--
Leave others their otherness.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.042 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site