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

Re: sticky directories



On Tue, Dec 04, 2001 at 08:11:29AM -0800, Greg Wiley wrote:
> Q: is there some way in Deb to cause new
> files to inherit ownership and permissions?
> 
> In particular, I want files created by certain
> users in a certain directory to be owned by
> a group that each belongs to but that is not
> the primary group of any of them.

Under Linux, a directory that is sgid will have its group ownership
inherited by any files created within it.  So just set the
directory's group ownership appropriately and `chmod g+s` it.

-- 
When we reduce our own liberties to stop terrorism, the terrorists
have already won. - reverius

Innocence is no protection when governments go bad. - Tom Swiss



Reply to: