- assigned_to: nobody --> burghardt
I don't know if my question should turn into a ClamFS feature request or it's a FUSE limitation...
I enabled the SGID bit in a folder mounted with ClamFS, but even when using "suid" mount option in "/etc/fstab", the SGID bit doesn't take effect in new files under that folder. And "/etc/mtab" shows a "nosuid" option enabled, instead.
My "/etc/fstab" line is here:
---------------------
/dev/dracula_vg/programas_lv /media/samba/programas reiserfs usrquota,grpquota,notail,suid 0 2
clamfs#/etc/clamfs/clamfs-programas.xml /media/samba/programas.clamfs fuse defaults,suid 0 0
---------------------
The first line is a LVM2 logical volume that is mounted under "/media/samba/programas". The second line mounts a subfolder "/media/samba/programas/items" under "/media/samba/programas.clamfs". Both "/media/samba/programas" and "/media/samba/programas/items" has the SGID bit on, but:
# export LC_ALL=en_US
# id
uid=0(root) gid=0(root) groups=0(root),105(ssh)
# mount | grep /media/samba/programas
/dev/mapper/dracula_vg-programas_lv on /media/samba/programas type reiserfs (rw,usrquota,grpquota,notail)
clamfs on /media/samba/programas.clamfs type fuse.clamfs (rw,nosuid,nodev,allow_other,default_permissions)
# pwd
/media/samba/programas
# ls -ld . items
drwxr-sr-x 32 root samba_rw 1064 2009-02-27 11:17 .
drwxrwsr-x 136 root samba_rw 4840 2009-02-27 13:58 items
# ls -l items/test.txt
ls: cannot access items/test.txt: No such file or directory
# touch items/test.txt
# ls -l items/test.txt
-rw-rw-r-- 1 root samba_rw 0 Feb 27 15:26 items/test.txt
# ls -l ../programas.clamfs/test.txt
-rw-rw-r-- 1 root samba_rw 0 Feb 27 15:26 ../programas.clamfs/test.txt
# rm -fv items/test.txt
removed `items/test.txt'
# ls -l ../programas.clamfs/test.txt
ls: cannot access ../programas.clamfs/test.txt: No such file or directory
# touch ../programas.clamfs/test.txt
# ls -l items/test.txt
-rw-rw-r-- 1 root root 0 Feb 27 15:28 items/test.txt
# ls -l ../programas.clamfs/test.txt
-rw-rw-r-- 1 root root 0 Feb 27 15:28 ../programas.clamfs/test.txt
# rm -fv items/test.txt
removed `items/test.txt'