Sample Header Ad - 728x90

ls throws errors when trying to access directory guarded with ACL

3 votes
1 answer
99 views
I have setup a directory and some files with setfacl.
`
jobq@workstation:~/Pool$ getfacl /etc/jobq
getfacl: Removing leading '/' from absolute path names
# file: etc/jobq
# owner: root
# group: jobq
user::rwx
user:jobq:rw-
group::r-x
group:jobq:rwx
mask::rwx
other::r-x

jobq@workstation:~/Pool$ sudo getfacl /etc/jobq/log.txt
getfacl: Removing leading '/' from absolute path names
# file: etc/jobq/log.txt
# owner: root
# group: jobq
user::rw-
group::rw-
group:jobq:rwx
mask::rwx
other::r--

jobq@workstation:~/Pool$ groups
jobq
` However, when I run a command, like
`
ls -al /etc/jobq
` I'm getting permission errors:
` 
ls: cannot access '/etc/jobq/log.txt': Permission denied
total 0
d????????? ? ? ? ?            ? .
d????????? ? ? ? ?            ? ..
` Since user jobq is in the group jobq, they should have access to the directory. What am I misunderstanding? How can I fix this?
Asked by infinitezero (207 rep)
Jun 21, 2022, 06:29 AM
Last activity: Jun 21, 2022, 06:44 AM