There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

FACL, Get effective: ---

Hi,

I’ve set for a directory the following


<span style="color:#323232;">setfacl -dm u:aUser:r aDirectory
</span><span style="font-style:italic;color:#969896;">#set new files to be readable by aUser
</span><span style="color:#323232;">
</span><span style="color:#323232;">cp ~/Desktop/aFile.txt /xx/xx/xx/aDirectory
</span><span style="color:#323232;">
</span><span style="color:#323232;">getfacl aFile.txt </span><span style="font-style:italic;color:#969896;">#the copied one
</span>

<span style="color:#323232;"># file: aFile.txt
</span><span style="color:#323232;"># owner: me
</span><span style="color:#323232;"># group: me
</span><span style="color:#323232;">user::rwx
</span><span style="color:#323232;">user:aUser:r--
</span><span style="color:#323232;">group::r-x
</span><span style="color:#323232;">mask::rwx
</span><span style="color:#323232;">other::rwx
</span>

So indeed we see the aUser got r–

but


<span style="color:#323232;">stat aFile.txt
</span>

return


<span style="color:#323232;">(0777/-rwxrwxrwx) #!!!!
</span>

is that normal ???

Thanks.

Rick_C137 OP , (edited )
@Rick_C137@programming.dev avatar

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

F04118F ,

SMB is originally Windows tech. So it might not play nicely with file modes?

boo_ ,
@boo_@lemmy.blahaj.zone avatar

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.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines