Please describe what you are doing to trigger the bug:
Changing location of logs
directory.
Please describe what you expect to happen (but doesn’t):
Expect log files to be accessible as specified by default permissions on the logs
directory.
Please describe what actually happens (the wrong behaviour):
mask::---
setting prevents access.
[/share/Household/duplicacy] # getfacl logs
# file: logs
# owner: Keith
# group: everyone
user::rwx
user:admin:rwx
user:Keith:rwx
user:guest:---
group::---
group:administrators:rwx
group:Household:rwx
mask::rwx
other::---
default:user::rwx
default:user:admin:rwx
default:user:Keith:rwx
default:user:guest:---
default:group::---
default:group:administrators:rwx
default:group:Household:rwx
default:mask::rwx
default:other::---
[/share/Household/duplicacy] # whoami
admin
[/share/Household/duplicacy] # cd logs
[/share/Household/duplicacy/logs] # touch test.log
[/share/Household/duplicacy/logs] # ll test.log
-rw-rw---- 1 admin administrators 0 2022-02-09 11:14 test.log
[/share/Household/duplicacy/logs] # getfacl test.log
# file: test.log
# owner: admin
# group: administrators
user::rw-
user:admin:rwx #effective:rw-
user:Keith:rwx #effective:rw-
user:guest:---
group::---
group:administrators:rwx #effective:rw-
group:Household:rwx #effective:rw-
mask::rw-
other::---
The test.log
file created by admin
is accessible.
Change location of logs
directory to /share/Household/duplicacy/logs
and run a backup.
[/share/Household/duplicacy/logs] # ll
total 40K
drwxrwx--- 2 Keith everyone 4.0K 2022-02-09 11:20 ./
drwxrwx--- 4 Keith everyone 4.0K 2022-02-09 11:14 ../
-rw------- 1 admin administrators 1.5K 2022-02-09 11:21 backup-20220209-112035.log
-rw-r----- 1 admin administrators 5.6K 2022-02-09 11:21 duplicacy_web.log
-rw-rw---- 1 admin administrators 0 2022-02-09 11:14 test.log
[/share/Household/duplicacy/logs] # getfacl duplicacy_web.log
# file: duplicacy_web.log
# owner: admin
# group: administrators
user::rw-
user:admin:rwx #effective:r--
user:Keith:rwx #effective:r--
user:guest:---
group::---
group:administrators:rwx #effective:r--
group:Household:rwx #effective:r--
mask::r--
other::---
[/share/Household/duplicacy/logs] # getfacl backup-20220209-112035.log
# file: backup-20220209-112035.log
# owner: admin
# group: administrators
user::rw-
user:admin:rwx #effective:---
user:Keith:rwx #effective:---
user:guest:---
group::---
group:administrators:rwx #effective:---
group:Household:rwx #effective:---
mask::---
other::---
The mask::r--
setting on duplicacy_web.log
allows access, but the mask::---
setting on backup-20220209-112035.log
prevents access.