xfs
[Top] [All Lists]

Re: Mounting XFS volumes with uid= or gid= or both

To: Steve Lord <lord@xxxxxxx>
Subject: Re: Mounting XFS volumes with uid= or gid= or both
From: Andi Kleen <ak@xxxxxxx>
Date: Fri, 13 Jul 2001 21:26:00 +0200
Cc: "Gonyou, Austin" <austin@xxxxxxxxxxxxxxx>, "'linux-xfs@xxxxxxxxxxx'" <linux-xfs@xxxxxxxxxxx>
In-reply-to: <200107131900.f6DJ02E14044@xxxxxxxxxxxxxxxxxxxx>; from lord@xxxxxxx on Fri, Jul 13, 2001 at 02:00:02PM -0500
References: <85063BBE668FD411944400D0B744267A6433E2@AUSMAIL> <200107131900.f6DJ02E14044@xxxxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
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.

-Andi


<Prev in Thread] Current Thread [Next in Thread>