Hi,

I’ve set for a directory the following

setfacl -dm u:aUser:r aDirectory
#set new files to be readable by aUser

cp ~/Desktop/aFile.txt /xx/xx/xx/aDirectory

getfacl aFile.txt #the copied one
# file: aFile.txt
# owner: me
# group: me
user::rwx
user:aUser:r--
group::r-x
mask::rwx
other::rwx

So indeed we see the aUser got r--

but

stat aFile.txt

return

(0777/-rwxrwxrwx) #!!!!

is that normal ???

Thanks.

  • Rick_C137@programming.devOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    3 months ago

    Update, this is only happening when I copy files from a ~SMB share… :'(
    Otherwise it’s correct…

    • Boo@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      2
      ·
      3 months ago

      SMB is weird, do you have the option to run NFS on the share instead? Since NFS is made for Unix systems, it’s what I’ve always gone for.