Re: UID reset to root after chgrp on CephFS Ganesha export

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

 



On Wed, Aug 31, 2016 at 11:23 AM, Wido den Hollander <wido@xxxxxxxx> wrote:
> Hi,
>
> I have a CephFS filesystem which is re-exported through NFS Ganesha (v2.3.0) with Ceph 10.2.2
>
> The export works fine, but when calling a chgrp on a file the UID is set to root.
>
> Example list of commands:
>
> $ chown www-data:www-data myfile
>
> That works, file is now owned by www-data/www-data
>
> $ chgrp nogroup myfile

Does the nogroup group have GID -1 by any chance?  There is a bug in
the userspace client where it doesn't handle negative gid/uids
properly at all, which Greg is working on at the moment
(http://tracker.ceph.com/issues/16367)

John

> That files, the UID is now set to 0 (root) and the group hasn't changed.
>
> I tracked this down to being a Ganesha problem in combination with CephFS. Running these commands on either a kernel mounted CephFS or via FUSE I don't see this problem.
>
> The Ganesha configuration:
>
> NFSv4
> {
>         IdmapConf = /etc/idmapd.conf;
> }
>
> EXPORT
> {
>     Export_ID = 1;
>     Path = "/";
>     Pseudo = "/";
>     Access_Type = RW;
>     Protocols = "4";
>     Squash = no_root_squash;
>     Transports = TCP;
>     SecType = sys;
>
>     FSAL {
>         Name = CEPH;
>     }
> }
>
> Has anybody seen this before?
>
> Wido
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux