|
Consider a computing environment in which there are users u1, u2, u3, u3, u4, u5, groups g1 = {u1, u2, u5}, g2 = {u2, u4, u5}, g3 = {u2, u4}, and a directory named dir containing files named file1 and file2. The results of the following ls and acl_edit commands are given:
% ls -ld dir dir/file1 dir/file2
drwxrwx--x 2 u2 g2 352 Apr 30 12:29 dir
-rw-rw---- 1 u3 g3 52 Apr 30 12:29 dir/file1
-rwxrwxr-x 1 u4 g3 146 Apr 30 12:30 dir/file2
% acl_edit dir -l
mask_obj:rwx-id
user_obj:rwxcid
group_obj:r-x---
user:u4:------
group:g3:rwx-id
other_obj:--x---
any_other:--x---
% acl_edit dir/file1 -l
mask_obj:rw----
user_obj:rw-c--
group_obj:rw----
group:g2:rw----
other_obj:------
any_other:------
% acl_edit dir/file2 -l
mask_obj:rwxcid
user_obj:rwxc--
group_obj:r-x---
user:u3:rwx---
group:g1:r-----
other_obj:r-x---
any_other:r-x---
Give a matrix whose rows are labeled by the users u1, u2, u3, u4, u5, whose colums are labeled by the directory and file names dir, dir/file1, dir/file2, and whose contents show the permissions (a subset of rwxcid) authorized to the specific user on the specific directory or file.
|