[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-developers] file permissions (last question, honest :)



Gil & Robert wrote:

>"Gil DuPont" <gdupont@xxxxxxxxxxxxx>
>
>> what would changing it to an 'x' do?
>
>the directory would no longer execute as the GID it wold execute as the
>owner that executed it.

>"Robert G. Fisher" <rfisher@xxxxxxxxxxxxxxx>
>To: cobalt-developers@xxxxxxxxxxxxxxx
>Subject: Re: [cobalt-developers] file permissions
>Reply-To: cobalt-developers@xxxxxxxxxxxxxxx
>
>On Tue, Aug 29, 2000 at 08:19:50AM -0500, Gil DuPont wrote:
>> > drwxrwsr-x
>> 
>> The above permission says that the file is a directory, and that the owner
>> has r,w,x, the group has r,w,x, and everyone else has, r,x the s in the
>> group permisions says that when the directory executes it executes as the
>> GID of the directory, look at the group owner.
>
>Actually, this means that any new file created in the directory 
>will have the same GID of the directory it's in.  It amounts to
>the same thing as on an executable, which runs with the same gid
>as is set on the file.


So, to ask this question for the last time with even more explanations,

What *effect* will removing the 's' have?

(update - I'm now pretty sure I want to use  "chmod -R g-s /home/sites" to
do this) 

I now understand what the 's' means (vaguely), but I still don't know:

1) why it appeared
2) what the *effect* will be if I remove it

Thoughts, Thanks.

cLive ;-)

PS - Try this one... If I ask you what happens if I pull the power cord out
of my computer whilst running a particular program, I don't want to know
that the computer goes off, I want to know what *effect* pulling the plug
would/could have.

Make more sense now?


cLive hoLLoway
E-commerce Developer
Now is the time to get trolleyed - www.get-trolleyed.co.uk

print pack "H56", '4a75737420616e6f7468657220636f72706f726174652077686f7265';