ACL is set with 'setfacl' but does not work as expected

Solution In Progress - Updated -

Issue

  • ACL is set but it does not work as it is configured
  • See an example below:
[splunk@SKT-DMHPAP2 log]$ getfacl secure
# file: secure
# owner: root
# group: root
user::rw-
user:splunk:r--
group::---
mask::r--
other::---


[splunk@SKT-DMHPAP2 log]$ ls -al secure
-rw-r-----+ 1 root root 603161 Oct 23 10:06 secure

splunk@SKT-DMHPAP2 log]$ getfacl /var/log
getfacl: Removing leading '/' from absolute path names
# file: var/log
# owner: root
# group: root
user::rwx
group::r-x
other::r-x

[splunk@SKT-DMHPAP2 log]$ cat secure |grep "Oct 23"
cat: secure: Permission denied       <===========================
  • user or group cannot access files or directories when ACL are set to allow them.

Environment

  • Red Hat Enterprise Linux 6, 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content