From: PengYu.UT on
I have a directory of mode 'drwx--Sr-x'. I'm wondering what 'S' means
and how to remove this mode.
From: Seebs on
On 2009-12-17, PengYu.UT(a)gmail.com <pengyu.ut(a)gmail.com> wrote:
> I have a directory of mode 'drwx--Sr-x'. I'm wondering what 'S' means
> and how to remove this mode.

--S--S--S = mode 07000.
--S------ = mode 04000.
s = S+x

-s
--
Copyright 2009, all wrongs reversed. Peter Seebach / usenet-nospam(a)seebs.net
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!
From: Lew Pitcher on
On December 17, 2009 18:41, in comp.unix.shell, usenet-nospam(a)seebs.net
wrote:

> On 2009-12-17, PengYu.UT(a)gmail.com <pengyu.ut(a)gmail.com> wrote:
>> I have a directory of mode 'drwx--Sr-x'. I'm wondering what 'S' means

SetUID/SetGID/Sticky

>> and how to remove this mode.

chmod a-s


>
> --S--S--S = mode 07000.
> --S------ = mode 04000.
> s = S+x



--
Lew Pitcher
Master Codewright & JOAT-in-training | Registered Linux User #112576
Me: http://pitcher.digitalfreehold.ca/ | Just Linux: http://justlinux.ca/
---------- Slackware - Because I know what I'm doing. ------


From: Kaz Kylheku on
On 2009-12-17, PengYu.UT(a)gmail.com <pengyu.ut(a)gmail.com> wrote:
> I have a directory of mode 'drwx--Sr-x'. I'm wondering what 'S' means
> and how to remove this mode.

I see you're posting from Linux, so it's likely you're asking abuot
the output of the GNU coreutils ``ls'' program from coreutils.

This has, like, documenation, y'know? Good ole RTFM:

$ info ls

[ ... search ... ]

The file mode bits 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 set-user-ID or set-group-ID bit and the corresponding
executable bit are both set.

`S'
If the set-user-ID or set-group-ID bit is set but the
corresponding executable bit is not set.

From: Keith Keller on
On 2009-12-17, Kaz Kylheku <kkylheku(a)gmail.com> wrote:
>
> This has, like, documenation, y'know? Good ole RTFM:
>
> $ info ls

Some people would not use "good" and "info" in the same sentence. ;-/

I almost never use the info pages, and don't expect others to use them
either. But I do note that, except for S, the symbolic modes are listed
in man chmod. But neither man page notes that S in the ls display is
equivalent to mode sx.

--keith


--
kkeller-usenet(a)wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information