Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| rdms:data:permissions [2026/01/14 14:15] – [Example: Permission Inheritance - Enabled] brief rephrasing giulio | rdms:data:permissions [2026/01/15 14:49] (current) – formatting giulio | ||
|---|---|---|---|
| Line 43: | Line 43: | ||
| **Important Note:** The RDMS considers a file or folder **new** if you **upload** it to the RDMS or if you **copy** it from an existing RDMS location. A file or folder is **not** considered **new** if you **move** it from an existing RDMS location. In this second case, you will need to manually modify the permissions on the file or folder. We recommend you verify the permissions assigned to a file or folder after you moved it to a new location, regardless of whether permission inheritance is enabled or disabled. | **Important Note:** The RDMS considers a file or folder **new** if you **upload** it to the RDMS or if you **copy** it from an existing RDMS location. A file or folder is **not** considered **new** if you **move** it from an existing RDMS location. In this second case, you will need to manually modify the permissions on the file or folder. We recommend you verify the permissions assigned to a file or folder after you moved it to a new location, regardless of whether permission inheritance is enabled or disabled. | ||
| - | To display things more easily, we decided to use the CLI client [[..: | + | To display things more easily, we decided to use the CLI client [[..: |
| < | < | ||
| - | # The ' | + | # This is the folder with enabled inheritance that we use as destination. Note the permissions set on this folder (the part after 'ACL' |
| - | # Please look to the ' | + | $ ils -A / |
| - | # In this case, the permission level is ' | + | ACL - teamdrive-owner@rug.nl# |
| + | Inheritance - Enabled | ||
| + | |||
| + | # First, we we will show what happens if we copy the folder | ||
| + | $ icp -r folder_test / | ||
| + | |||
| + | # Checking | ||
| + | data --> Inheritance is applied. | ||
| + | $ ils -A / | ||
| + | / | ||
| + | ACL - teamdrive-owner@rug.nl# | ||
| + | Inheritance - Enabled | ||
| + | |||
| + | # Now, we look at the permission of the second | ||
| + | # In this case, it is only a single user (rdms-testers@rug.nl) who has ' | ||
| $ ils -A folder_test | $ ils -A folder_test | ||
| / | / | ||
| Line 55: | Line 69: | ||
| # The folder is now moved to a RDMS destination with permission inheritance enabled. | # The folder is now moved to a RDMS destination with permission inheritance enabled. | ||
| - | # The ' | ||
| - | # ACL - teamdrive-owner@rug.nl# | ||
| - | # So other users have permissions in this folder and ' | ||
| $ imv folder_test / | $ imv folder_test / | ||
| - | # We list the details of the folder | + | # We check now the permissions |
| - | # Even with enabled inheritance, | + | |
| - | # Move: Does not count as new data --> Inheritance is not applied. | + | |
| $ ils -A / | $ ils -A / | ||
| / | / | ||
| ACL - rdms-testers@rug.nl# | ACL - rdms-testers@rug.nl# | ||
| Inheritance - Disabled | Inheritance - Disabled | ||
| - | |||
| - | # Now we will show what happens if we copy the folder to the destination with enabled inheritance. | ||
| - | $ icp -r folder_test / | ||
| - | |||
| - | # We list the details of the folder a third time. See the ' | ||
| - | # Checking the permission now shows that the inherited permission of the parent folder are applied. | ||
| - | # Copy: Counts as new data --> Inheritance is applied. | ||
| - | $ ils -A / | ||
| - | / | ||
| - | ACL - teamdrive-owner@rug.nl# | ||
| - | Inheritance - Enabled | ||
| </ | </ | ||
| Line 94: | Line 92: | ||
| Inheritance - Enabled | Inheritance - Enabled | ||
| - | # The ' | + | # The ' |
| $ iput test.txt / | $ iput test.txt / | ||
| - | # See the ' | + | # See the ' |
| - | # Permissions on the newly uploaded file show that it inherited the permission from the parent collection automatically | + | # Permissions on the newly uploaded file show that it inherited the permission from the parent collection automatically. |
| $ ils -A / | $ ils -A / | ||
| / | / | ||
| Line 110: | Line 108: | ||
| ==== Example: Permission Inheritance - Disabled ==== | ==== Example: Permission Inheritance - Disabled ==== | ||
| - | In this example, we now assume | + | In this other example, we now assume |
| < | < | ||
| # In this case, the folder has inheritance disabled. | # In this case, the folder has inheritance disabled. | ||
| # The ' | # The ' | ||
| + | # Please look to the ' | ||
| $ ils -A / | $ ils -A / | ||
| / | / | ||
| Line 120: | Line 119: | ||
| Inheritance - Disabled | Inheritance - Disabled | ||
| - | # The ' | + | # The ' |
| $ iput test.txt / | $ iput test.txt / | ||
| - | # Permissions on the newly uploaded file show that it only has one permission: own for the uploading user | + | # See the ' |
| + | # Permissions on the newly uploaded file show that it only has one permission: | ||
| $ ils -A / | $ ils -A / | ||
| / | / | ||
| Line 129: | Line 129: | ||
| </ | </ | ||
| - | As you can see, the uploaded file now has only a single permission: Ownership for the creator (uploader), so ' | + | As you can see, the uploaded file now has only a single permission: Ownership for the creator (uploader), so ' |
| - | + | ||
| - | In these case, you will need to set the permission | + | |
| **Note**: A good reason to have permission inheritance disabled in the top-level of a Team Drive is to allow for easy permission management when the permissions are not the same in all Team Drive locations. For instance, if User 1 should only have permissions in Folder 1 and User 2 should only have permissions in Folder 2, with permission inheritance disabled, you can then simply add the Users without having to remove other Users first when creating new folders. Permission inheritance can then be enabled again inside Folder 1 and Folder 2, to help keep track of the right permissions. | **Note**: A good reason to have permission inheritance disabled in the top-level of a Team Drive is to allow for easy permission management when the permissions are not the same in all Team Drive locations. For instance, if User 1 should only have permissions in Folder 1 and User 2 should only have permissions in Folder 2, with permission inheritance disabled, you can then simply add the Users without having to remove other Users first when creating new folders. Permission inheritance can then be enabled again inside Folder 1 and Folder 2, to help keep track of the right permissions. | ||