From: Seebs on
On 2009-12-18, Keith Keller <kkeller-usenet(a)wombat.san-francisco.ca.us> wrote:
> 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.

That's because it's not.

s is equivalent to Sx.

-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: Greg Russell on
"Lew Pitcher" <lpitcher(a)teksavvy.com> wrote in message
news:30c41$4b2ac2aa$4b77e0bb$16672(a)TEKSAVVY.COM-Free...

>> I have a directory of mode 'drwx--Sr-x'. I'm wondering what 'S' means
>
> SetUID/SetGID/Sticky

Bzzzzt ... wrong. The "sticky" bit is denoted by "chmod o+t ...", as in
"ls -l / | grep tmp".

Please don't continue to mis-inform others with the long-mistaken (and
mis-stated) belief that because the word "sticky"starts with the letter "s",
that it is denoted by same.

"man chmod" for further information.


From: PengYu.UT on
On Dec 18, 5:45 pm, Lew Pitcher <lpitc...(a)teksavvy.com> wrote:
> On December 17, 2009 18:41, in comp.unix.shell, usenet-nos...(a)seebs.net
> wrote:
>
> > On 2009-12-17, PengYu...(a)gmail.com <pengyu...(a)gmail.com> wrote:
> >> I have a directory of mode 'drwx--Sr-x'. I'm wondering what 'S' means
>
> SetUID/SetGID/Sticky
What do these mean?


> >> 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: Bruce Bowler on
On Fri, 18 Dec 2009 07:21:22 -0800, PengYu.UT(a)gmail.com wrote:

> On Dec 18, 5:45 pm, Lew Pitcher <lpitc...(a)teksavvy.com> wrote:
>> On December 17, 2009 18:41, in comp.unix.shell, usenet-nos...(a)seebs.net
>> wrote:
>>
>> > On 2009-12-17, PengYu...(a)gmail.com <pengyu...(a)gmail.com> wrote:
>> >> I have a directory of mode 'drwx--Sr-x'. I'm wondering what 'S'
>> >> means
>>
>> SetUID/SetGID/Sticky
> What do these mean?

Have you heard of Google?

>
>
>> >> and how to remove this mode.
>>
>> chmod a-s
>>
>>
>>
>> > --S--S--S = mode 07000.
>> > --S------ = mode 04000.
>> > s = S+x
>>
From: bb on
On 2009-12-18 16:21, PengYu.UT(a)gmail.com wrote:
> On Dec 18, 5:45 pm, Lew Pitcher <lpitc...(a)teksavvy.com> wrote:
>> On December 17, 2009 18:41, in comp.unix.shell, usenet-nos...(a)seebs.net
>> wrote:
>>
>>> On 2009-12-17, PengYu...(a)gmail.com <pengyu...(a)gmail.com> wrote:
>>>> I have a directory of mode 'drwx--Sr-x'. I'm wondering what 'S' means
>> SetUID/SetGID/Sticky
> What do these mean?
>
>
>>>> 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. ------
>

This permission is really a hack or a mistake.

It means that the owner can access it , and all others
can cd to it and list it if they are NOT member of the group.
All new files and directories in it will be crated with the same
group.

The permission is 2705 and is maybe not possible to set for a normal user.
I can set it on linux but not on my Solaris 10 sparc.

Just do chmod 755, chmod g=rx or something and it will be fixed.
If you just do chmod g-s you have still a strange permission(705) that exclude
members of just that group, so check if that make sense , like if the group
is untrusted, sales, marketing or something.

/bb