On 18 November 2010 18:26, Chris G cl@isbd.net wrote:
On Fri, Nov 12, 2010 at 11:56:49AM +0000, Karl Foley wrote:
I can suggest two ways, depending on what your distro supports: 1. You can set the sticky bit on the group so that all the files created in the directory are owned by the group rather than the user: i.e. 'chmod 2660 TheDir' The 2 sets the sticky bit for the group, replace the 660 with whatever you need.
Thanks, I think this will probably do what I went when I have got my mind round the documentation. I *believe* the bit you call the 'sticky' bit is more usually called the SETGID bit.
I think that's incorrect (in this context). In Linux, Set-GID is mode_t S_ISGID, and Sticky is S_ISVTX.
See: man 2 chmod
Srdjan