On 13 Jul, Andi Kleen wrote:
> On Fri, Jul 13, 2001 at 02:00:02PM -0500, Steve Lord wrote:
>> I presume what you are attempting to do is create a filesystem where
>> no matter who creates a file, it ends up with the specified uid
>> instead of that of the user. A sort of msdos style of user id - i.e. none.
>> I think the filesystems which support the uid and gid options are those
>> which do not directly support storing uids and gids themselves. So the
>> options are there to help non-unix filesystems function in a unix
>> environment,
>> not to dumb down a unix based filesystem.
>
> Most unix file systems, it seems including XFS, support it for the GID at
> least.
> You just have to create a directory with that gid and set the setgroupid bit;
> then all files created below it get that gid by default. It is very useful
> for shared source repositories for example. Together with the right umask
> it'll very likely do what the original poster wants.
Not if he wants to prevent people from changing the mode of the files
they create, or doesn't want files in that directory to apply to their
quota. Something like that is, I guess, pretty much impossible to do.
--
-Matt Stegman
|