[Gluster-users] GlusterFS, move files, Samba ACL...

Marco Gaiarin gaio at lilliput.linux.it
Fri Sep 8 14:13:31 UTC 2023


A little strange things, but i'm hitting my head on the wall...


I needed to 'enlarge' my main filesystem (XFS backed-up), that contain my
main samba share and a brick for a GFS share; i've setup a new volume (for
the VM), formatted XFS, move all the file taking care to umount and stop GFS
(so, syncing the brick, not the GFS filesystem) using --acls and -attrs
rsync options.

All went well, all the share work as expected, apart the GFS one: folder
appears with correct permission, files are not accessible from samba; i've
tried from a unix user in console and works as expected.

If (from windows) i create new files, permissions are OK. Only preexistent
files (files, not folders!) are inaccessible.

In samba the share is:

 [FVG]
        comment = Regionale (FVG)
        volume = FVG
        path = /
        browseable = yes 
        writeable = yes  
        map acl inherit = yes
        store dos attributes = yes
        inherit permissions = yes
        vfs objects = recycle full_audit glusterfs
        glusterfs:volume = gv0
        kernel share modes = no
        recycle:repository = .cestino/%U
        recycle:keeptree = yes
        recycle:versions = yes
        recycle:exclude=*.TMP,*.tmp,*.temp,*.o,*.obj,~$*
        full_audit:prefix = %S|%d|%I|%M|%u
        full_audit:success = mkdir rmdir read pread write pwrite rename unlink
        full_audit:failure = none


gluster version 3.8.8-1+deb9u1, samba version 4.10.18+dfsg-0.1stretch1 .


Permission linux side are different but seems not incoherent:

root at vdmsv1:/srv/fvg/Ufficio Paghe# getfattr -m - -d Copia\ di\ fvg.xlsx Prova\,\ DELME.txt 
# file: Copia di fvg.xlsx
system.posix_acl_access=0sAgAAAAEABwD/////AgAHAAAAAAAEAAcA/////wgABwD5KgAACAAFAAgrAAAIAAcAHysAAAgABwA3KwAAEAAHAP////8gAAAA/////w==
trusted.SGI_ACL_FILE=0sAAAACQAAAAH/////AAcAAAAAAAIAAAAAAAcAAAAAAAT/////AAcAAAAAAAgAACr5AAcAAAAAAAgAACsIAAUAAAAAAAgAACsfAAcAAAAAAAgAACs3AAcAAAAAABD/////AAcAAAAAACD/////AAAAAA==
user.DOSATTRIB=0sMHgyMAAAAwADAAAAEQAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABD7z36KtcBAAAAAAAAAAA=
user.SAMBA_PAI=0sAgSQCQAAAAABOCsAAAAAKTAAAAAAKTAAAAABOCsAAAABNysAAAABHysAAAABCCsAAAAB+SoAAAAC/////w==

# file: Prova, DELME.txt
system.posix_acl_access=0sAgAAAAEABwD/////BAAHAP////8IAAcA+SoAAAgABQAIKwAACAAHAB8rAAAIAAcANysAABAABgD/////IAAAAP////8=
trusted.SGI_ACL_FILE=0sAAAACAAAAAH/////AAcAAAAAAAT/////AAcAAAAAAAgAACr5AAcAAAAAAAgAACsIAAUAAAAAAAgAACsfAAcAAAAAAAgAACs3AAcAAAAAABD/////AAYAAAAAACD/////AAAAAA==
user.DOSATTRIB=0sMHgyMAAAAwADAAAAEQAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICC3quz2dkBAAAAAAAAAAA=

root at vdmsv1:/srv/fvg/Ufficio Paghe# getfacl Copia\ di\ fvg.xlsx Prova\,\ DELME.txt 
# file: Copia di fvg.xlsx
# owner: stefano
# group: pp_uffconta
user::rwx
user:stefano:rwx
group::rw-
group:sir:rw-
group:sv_reamm:r--
group:sv_uffpers:rw-
group:pp_uffpers:rw-
group:pp_uffconta:rw-
mask::rwx
other::---

# file: Prova, DELME.txt
# owner: gaio
# group: sir
user::rwx
group::rwx                      #effective:rw-
group:sir:rwx                   #effective:rw-
group:sv_reamm:r-x              #effective:r--
group:sv_uffpers:rwx            #effective:rw-
group:pp_uffpers:rwx            #effective:rw-
mask::rw-
other::---


'Copia\ di\ fvg.xlsx' is an old file, 'Prova\,\ DELME.txt' a test file
created ex-novo.


Thanks.

-- 
  Chi parla male, pensa male e vive male.
  Bisogna trovare le parole giuste: le parole sono importanti!
						Nanni Moretti in Palombella Rossa




More information about the Gluster-users mailing list