I have a directory that I would like to share with two specific users. It has no contents yet, but I need all three of us to be able to add files and subdirectories, and it's important that all contents (by default at least) inherit the same permissions. The three of us get full access--nobody else gets anything.
I thought I'd accomplished this goal with:
setfacl -m u:myfriend:rwx Directory
setfacl -d -m u:myfriend:rwx Directory
But when I create a test file inside the directory, I see the following:
$$$ getfacl TESTFILE
# file: TESTFILE
# owner: me
# group: me
user::rw-
user:myfriend:rwx #effective:---
group::---
mask::---
other::---
I think the mask is the problem, but the mask on the directory doesn't match. This is what I get when I run getfacl on the Directory:
$$$ getfacl .
# file: .
# owner: me
# group: me
user::rwx
user:myfriend:rwx
group::---
mask::rwx
other::---
default:user::rwx
default:user:myfriend:rwx
default:group::---
default:mask::rwx
default:other::---
What am I doing wrong here? Thanks!
Asked by Alexander Brooks
(29 rep)
Jun 30, 2020, 04:10 PM
Last activity: May 9, 2025, 07:02 AM
Last activity: May 9, 2025, 07:02 AM