Comment 60 for bug 225361

Revision history for this message
Xavier De Poorter (depx) wrote : Re: other users don't have access to .gvfs

Hi, other users can't have access to .gvfs :

I tried to hack it directly in gvfs but i found in fuse code :

2005-07-07 Miklos Szeredi <email address hidden>

        * lib: don't allow both 'allow_other' and 'allow_root' options to
        be given

gvfs use libfuse2 so i hacked fuse :

diff fuse-2.7.4/kernel/ fuse-2.7.4-modified/kernel/
diff fuse-2.7.4/kernel/dir.c fuse-2.7.4-modified/kernel/dir.c
728a729,730
> return 1;
>
diff fuse-2.7.4/kernel/inode.c fuse-2.7.4-modified/kernel/inode.c
377a378,383
>
> switch (token) {
> default:
> d->flags |= FUSE_ALLOW_OTHER;
> }
>

be careful, it force the option allow_other for each fuse mount

and it works !

i done this trick to replace sftpdrive or webdrive (win32 + proprietary) by a virtual box + samba + "user friendly" nautilus gvfs on the office's win32 boxes