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 13:40] – Added reason for turning inheritance on or off in examples giulio | rdms:data:permissions [2026/01/15 14:49] (current) – formatting giulio | ||
|---|---|---|---|
| Line 39: | Line 39: | ||
| If you decide to disable permission inheritance, | If you decide to disable permission inheritance, | ||
| - | Please note that you can modify user permissions on specific subfolders or files even when permission inheritance is activated on the main folder. Having permission inheritance activated is meant to help you by automatically setting the permissions of new files and folders. It does not prevent you from changing them afterwards, should you need different permissions on specific files or folders. | + | Please note that you can modify user permissions on specific subfolders or files even when permission inheritance is activated on the main folder. Having permission inheritance activated is meant to help you by automatically setting the permissions of **new files and folders**. It does not prevent you from changing them afterwards, should you need different permissions on specific files or folders. |
| - | In order to make this concept clearer, we are going to describe two examples and show what happens when permission inheritance are either turned | + | **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 |
| - | To display things more easily, we decided to use the CLI client [[..: | + | To display things more easily, we decided to use the CLI client [[..: |
| + | < | ||
| + | # This is the folder with enabled inheritance that we use as destination. Note the permissions set on this folder (the part after ' | ||
| + | $ ils -A / | ||
| + | ACL - teamdrive-owner@rug.nl# | ||
| + | Inheritance - Enabled | ||
| + | |||
| + | # First, we we will show what happens if we copy the folder to the destination with enabled inheritance. | ||
| + | $ icp -r folder_test / | ||
| + | |||
| + | # Checking the permission shows that the permission of the parent folder are applied/ | ||
| + | data --> Inheritance is applied. | ||
| + | $ ils -A / | ||
| + | / | ||
| + | ACL - teamdrive-owner@rug.nl# | ||
| + | Inheritance - Enabled | ||
| + | |||
| + | # Now, we look at the permission of the second folder that we want to copy/move to show the effect of inheritance. | ||
| + | # In this case, it is only a single user (rdms-testers@rug.nl) who has ' | ||
| + | $ ils -A folder_test | ||
| + | / | ||
| + | ACL - rdms-testers@rug.nl# | ||
| + | Inheritance - Disabled | ||
| + | |||
| + | # The folder is now moved to a RDMS destination with permission inheritance enabled. | ||
| + | $ imv folder_test / | ||
| + | |||
| + | # We check now the permissions again. Even with enabled inheritance, | ||
| + | $ ils -A / | ||
| + | / | ||
| + | ACL - rdms-testers@rug.nl# | ||
| + | Inheritance - Disabled | ||
| + | </ | ||
| + | |||
| + | In order to make this concept clearer, we are going to describe two examples and show what happens when permission inheritance are either turned on or off. We also point out when enabling or disabling permission inheritance can be advantageous. Please bear in mind that we will be considering a basic set up, but that for more complex cases the effect of permission inheritance might not be immediately straightforward. | ||
| ==== Example: Permission Inheritance - Enabled ==== | ==== Example: Permission Inheritance - Enabled ==== | ||
| - | In this example, we show what happens when the user '' | + | In this example, we show what happens when the user '' |
| < | < | ||
| # In this case, the folder has inheritance enabled. | # In this case, the folder has inheritance enabled. | ||
| # The ' | # The ' | ||
| + | # Please look to the ' | ||
| $ ils -A / | $ ils -A / | ||
| / | / | ||
| Line 58: | Line 92: | ||
| Inheritance - Enabled | Inheritance - Enabled | ||
| - | # The ' | + | # The ' |
| $ iput test.txt / | $ iput test.txt / | ||
| - | # Permissions on the newly uploaded file show that it inherited the permission from the parent collection automatically | + | # See the ' |
| + | # Permissions on the newly uploaded file show that it inherited the permission from the parent collection automatically. | ||
| $ ils -A / | $ ils -A / | ||
| / | / | ||
| Line 69: | Line 102: | ||
| </ | </ | ||
| - | As can be seen above, the newly uploaded file now has exactly the same permissions as where set on the parent | + | As you can see above, the newly uploaded file now has exactly the same permissions as the Team Drive folder |
| - | **Important Note:** It should be mentioned that **permission inheritance only counts for newly created files/ | + | **Note**: A good reason to have permission inheritance enabled in a Team Drive is to make sure that all new data is provided with the correct permissions, |
| - | To work around that, you can create a copy of the file/folder that you want to transfer and delete the original data after successful copy. The reason is that a copy is counted as a new file/folder and the inheritance then applies. | + | |
| - | + | ||
| - | < | + | |
| - | # The ' | + | |
| - | ils -A folder_test | + | |
| - | / | + | |
| - | ACL - rdms-testers@rug.nl# | + | |
| - | Inheritance - Disabled | + | |
| - | + | ||
| - | # The folder is now moved to a RDMS destination with enabled inheritance. | + | |
| - | imv folder_test / | + | |
| - | + | ||
| - | # Even with enabled inheritance, | + | |
| - | $ ils -A / | + | |
| - | / | + | |
| - | ACL - rdms-testers@rug.nl# | + | |
| - | Inheritance - Disabled | + | |
| - | + | ||
| - | # Now the user, does not move, but copies the folder to the destination with enabled inheritance. | + | |
| - | $ icp -r folder_test / | + | |
| - | + | ||
| - | # Checking the permission now shows that the inherited permission of the parent folder are applied. Copy: Counted as new data --> Inheritance is applied. | + | |
| - | $ ils -A / | + | |
| - | / | + | |
| - | ACL - teamdrive-owner@rug.nl# | + | |
| - | Inheritance - Enabled | + | |
| - | </ | + | |
| - | + | ||
| - | **Note**: A good reason to have permission inheritance enabled in a Team Drive is to make sure that all new data is provided with the correct permissions, | + | |
| ==== 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 114: | 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 123: | 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. | ||