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=0sMHgyMAAAAwADAAAAEQAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABD7z36KtcBAAAAAAAAAAAuser.SAMBA_PAI=0sAgSQCQAAAAABOCsAAAAAKTAAAAAAKTAAAAABOCsAAAABNysAAAABHysAAAABCCsAAAAB+SoAAAAC/////w=
# file: Prova, DELME.txt
system.posix_acl_access=0sAgAAAAEABwD/////BAAHAP////8IAAcA+SoAAAgABQAIKwAACAAHAB8rAAAIAAcANysAABAABgD/////IAAAAP////8trusted.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.
--
...mi dispiace solo un po' per gli svizzeri, ieri hanno giocato una
partita di merda, oggi gli arriva bossi... (Piccia, il 27/6/2006)