info-cvs
[Top][All Lists]
Advanced

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

Re: What could go wrong with this scenario?


From: Chris Niekel
Subject: Re: What could go wrong with this scenario?
Date: Wed, 14 Nov 2001 19:02:44 +0100
User-agent: Mutt/1.3.23i

On Wed, Nov 14, 2001 at 05:20:41PM +0100, Marcel van der Boom wrote:
> chmod g+s does according to man page:
> 
> ...set user or group ID on execution (s)...
> 
> What exactly does that mean in this context of CVS?

For executables the 'sticky' bit makes the program run as the userid.
For directories however, it behaves differently.

Try:
   mkdir foo
   chown x.y foo
   mkdir  foo/bar
   chmod g+s foo
and then:
   mkdir foo/baz


And then observe the output of ls -l foo/
As you can see, the directory foo/baz has 'inherited' the group setting 
because of the +s.

This is exactly what you wanted.

Greetings,
Chris Niekel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]