From f41514a159c5976b4ed9a608e1c929faed56488c Mon Sep 17 00:00:00 2001 From: Danny Rotscher <danny.rotscher@tu-dresden.de> Date: Wed, 23 Feb 2022 10:13:05 +0100 Subject: [PATCH] Changed layout --- .../docs/data_lifecycle/data_sharing.md | 30 ++++++++++++------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/doc.zih.tu-dresden.de/docs/data_lifecycle/data_sharing.md b/doc.zih.tu-dresden.de/docs/data_lifecycle/data_sharing.md index 58459fd0f..a38c764d8 100644 --- a/doc.zih.tu-dresden.de/docs/data_lifecycle/data_sharing.md +++ b/doc.zih.tu-dresden.de/docs/data_lifecycle/data_sharing.md @@ -13,19 +13,29 @@ The command `setfacl` is used manage access rights for workspaces. To view the current access rights, use the command `getfacl`. The following commands are used to grant a user access to the workspace. -```shell console -# Grant a user full access to the workspace folder -setfacl --modify=u:<username>:rwx /path/to/workspace +!!! example "Grant a user full access to the workspace folder" -# Inherit these same rights to all newly created files and folders -setfacl --modify=d:u:<username>:rwx /path/to/workspace + ```console + marie@login$ setfacl --modify=u:<username>:rwx /path/to/workspace + ``` -# Grant a project full access to the workspace folder -setfacl --modify=g:<projectname>:rwx /path/to/workspace +!!! example "Inherit these same rights to all newly created files and folders" -# Inherit these same rights to all newly created files and folders -setfacl --modify=d:g:<projectname>:rwx /path/to/workspace -``` + ```console + marie@loginsetfacl --modify=d:u:<username>:rwx /path/to/workspace + ``` + +!!! example "Grant a project full access to the workspace folder" + + ```console + marie@login$ setfacl --modify=g:<projectname>:rwx /path/to/workspace + ``` + +!!! example "Inherit these same rights to all newly created files and folders" + + ```console + marie@login$ setfacl --modify=d:g:<projectname>:rwx /path/to/workspace + ``` If you already have files inside your workspace, remember to use the `-R` or `--recursive` options to apply these ACL changes to all files. -- GitLab