From: Hua Zhong <huaz@cs.columbia.edu>
To: Kenneth Johansson <ken@canit.se>
Cc: "H. Peter Anvin" <hpa@zytor.com>,
linux-kernel@vger.kernel.org, huaz@cs.columbia.edu
Subject: Re: EXT2 Filesystem permissions (bug)?
Date: Tue, 26 Jun 2001 18:40:34 -0400 [thread overview]
Message-ID: <200106262240.SAA26254@razor.cs.columbia.edu> (raw)
In-Reply-To: Message from Kenneth Johansson <ken@canit.se> of "Wed, 27 Jun 2001 00:23:04 +0200." <3B390B48.D444B7C5@canit.se>
> Do linux even support the sticky bit (t) I can't see a reason to use it, why would I want the file to be stored in the swap ??
For files I think it was used in days when there was no VM, so that you could
hint the system to put frequently used executables always in memory (like vi,
sh, etc). After VM was invented, there is really no reason to use it. I
don't think newer OSes like Linux implemented this.
> Also I think S (setuid but no execute bit) have something to do with file locking but I'am not shure exactly how it works.
On some unix systems S means using mandatory locking (instead of advisory
locking). I am not sure about Linux though.
> "H. Peter Anvin" wrote:
> >
> > Followup to: <Pine.LNX.4.30.0106251729450.18996-100000@coredump.sh0n.net>
> > By author: Shawn Starr <spstarr@sh0n.net>
> > In newsgroup: linux.dev.kernel
> > >
> > > Is this a bug or something thats undocumented somewhere?
> > >
> > > d--------T
> > > and
> > > drwSrwSrwT
> > >
> > > are these special bits? I'm not aware of +S and +T
> > >
> >
> > It's neither a bug nor undocumented.
> >
> > "info ls" would have told you the following:
> >
> > The permissions listed are similar to symbolic mode
> > specifications
> > (*note Symbolic Modes::.). But `ls' combines multiple bits into
> > the third character of each set of permissions as follows:
> > `s'
> > If the setuid or setgid bit and the corresponding executable
> > bit are both set.
> >
> > `S'
> > If the setuid or setgid bit is set but the corresponding
> > executable bit is not set.
> >
> > `t'
> > If the sticky bit and the other-executable bit are both set.
> >
> > `T'
> > If the sticky bit is set but the other-executable bit is not
> > set.
> >
> > `x'
> > If the executable bit is set and none of the above apply.
> >
> > `-'
> > Otherwise.
> >
> > -hpa
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
next prev parent reply other threads:[~2001-06-26 22:40 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-25 15:26 VM tuning through fault trace gathering [with actual code] John Fremlin
2001-06-25 17:57 ` Rik van Riel
2001-06-25 21:15 ` John Fremlin
2001-06-25 21:33 ` EXT2 Filesystem permissions (bug)? Shawn Starr
2001-06-25 21:42 ` H. Peter Anvin
2001-06-25 22:20 ` Shawn Starr
2001-06-26 22:23 ` Kenneth Johansson
2001-06-26 22:40 ` Hua Zhong [this message]
2001-06-26 23:04 ` Albert D. Cahalan
2001-06-27 0:02 ` Guest section DW
2001-06-27 9:37 ` Luigi Genoni
2001-06-25 21:47 ` Andreas Dilger
2001-06-25 22:10 ` Luigi Genoni
2001-06-26 0:53 ` VM tuning through fault trace gathering [with actual code] Marcelo Tosatti
2001-06-26 12:54 ` John Fremlin
2001-06-26 13:52 ` Marcelo Tosatti
2001-06-26 15:38 ` John Fremlin
2001-06-27 10:09 ` Marcelo Tosatti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200106262240.SAA26254@razor.cs.columbia.edu \
--to=huaz@cs.columbia.edu \
--cc=hpa@zytor.com \
--cc=ken@canit.se \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®