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, lost in it's behavior..

Hi,

I got FileA that have 640a getfacl FileA give me


<span style="color:#323232;"># file: FileA
</span><span style="color:#323232;"># owner: me
</span><span style="color:#323232;"># group: me
</span><span style="color:#323232;">user::rw-
</span><span style="color:#323232;">user:aUser:r--
</span><span style="color:#323232;">group::r-x			#effective:r--
</span><span style="color:#323232;">mask::r--
</span><span style="color:#323232;">other::---
</span>

So it’s give me the expected…

but when I do


<span style="color:#323232;">chmod 600 aFile
</span><span style="color:#323232;">getfacl aFile
</span>

<span style="color:#323232;">...
</span><span style="color:#323232;">user:aUser:r--		#effective:---
</span><span style="color:#323232;">...
</span><span style="color:#323232;">mask::---
</span><span style="color:#323232;">...
</span>

Why suddenly aUser lost his ability to read the file !?!?!

ghjones ,

ACLs on Linux can be a bit weird. If I remember correctly, the ACL mask corresponds to the group bit when using masks. Some more details here:

unix.stackexchange.com/…/setfacl-incorrectly-chan…

Rick_C137 OP ,
@Rick_C137@programming.dev avatar

<span style="color:#323232;">setfacl -m m:r aFile
</span><span style="font-style:italic;color:#969896;">#re set the mask
</span>

solve the problem, but the question is: why the F**** this is happening !?

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