Skip to content

Commit 43fbd79

Browse files
authored
Merge pull request #311 from NYU-RTS/mdweisner-facl-example-1
Update 08_sharing_data_on_hpc.mdx
2 parents 074dc9f + 90a1466 commit 43fbd79

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

docs/hpc/03_storage/08_sharing_data_on_hpc.mdx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,24 @@ A::EVERYONE@:rtncy
6060
```
6161
where `collaborator-netid` refers to the `NetID` of your collaborator.
6262

63+
#### New NFS4 FACL Example
64+
This example will grant a user, kevin, access to a shared directory in susie's /scratch directory.
65+
66+
To share a specific directory and all subdirectories a user would run something like this:
67+
68+
```sh
69+
nfs4_setfacl -a "A::kevin:RX" /scratch/susie
70+
```
71+
72+
The above grants kevin basic read/execute to /scratch susie, which is required to see directories and files below `/scratch/susie`.
73+
74+
```sh
75+
nfs4_setfacl -R -a "A:df:kevin:RWX" /scratch/susie/share
76+
```
77+
78+
The above would allow kevin to have have read, write, and execute access for *all directories* and files inside `/scratch/susie/share`
79+
80+
6381
## Linux Groups for Group Permissions
6482
The HPC team allows teams to manage group membership using a IPA Linux Group. This is a good choice for when all users need the same read/write/execute permissions for a directory and subdirectories.
6583

0 commit comments

Comments
 (0)