[Gluster-users] help, chmod g+s FOLDER doesn't make sense under glusterfs

Raghavendra G raghavendra.hg at gmail.com
Tue Aug 26 02:13:12 UTC 2008


Hi,

below is an excerpt of 'man creat'

O_CREAT
              If the file does not exist it will be created.  The owner
(user ID) of the file is set to
              the effective user ID of the process.  *The group ownership
(group ID) is  set  either  to
              the effective group ID of the process or to the group ID of
the parent directory* (depend-
              ing on filesystem type and mount options, and the mode of the
parent directory, see,  for
              example,  the mount options bsdgroups and sysvgroups of the
ext2 filesystem, as described
              in mount(8)).

glusterfs is setting the group ownership to effective group id of the
process.

regards,

On Tue, Aug 26, 2008 at 5:51 AM, Dai, Manhong <daimh at umich.edu> wrote:

>  Hi,
>
>
> This test is done under ext3 file system
> [root at bass1 ~]# id
> uid=0(root) gid=0(root)
> groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
> [root at bass1 ~]# ll -d a
> drwxr-sr-x 2 root allusers 4096 Aug 25 21:44 a
> [root at bass1 ~]# touch a/b
> [root at bass1 ~]# ll a/b
> -rw-r--r-- 1
> root allusers 0 Aug 25 21:44 a/b
>
>
> This test is done under glusterfs file system
> [root at bass1 home]# ll -d a
> drwxr-sr-x 2 root allusers 6 Aug 25 21:45 a
> [root at bass1 home]# touch a/b
> [root at bass1 home]# ll a/b
> -rw-r--r-- 1 root root 0 Aug 25 21:46 a/b
>
>
> As we see here, the file b should belong to group allusers.
>
> Doesn't gluster support this feature? which could make group sharing easy.
> I would rather I did something wrong, please tell me how to fix this
> problem.
>
>
> Best,
> Manhong
>
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users
>
>


-- 
Raghavendra G

A centipede was happy quite, until a toad in fun,
Said, "Prey, which leg comes after which?",
This raised his doubts to such a pitch,
He fell flat into the ditch,
Not knowing how to run.
-Anonymous
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20080826/469d3a2c/attachment.html>


More information about the Gluster-users mailing list