Sharing data: Difference between revisions

Jump to navigation Jump to search
Line 63: Line 63:


=== Set User ID (SUID) ===
=== Set User ID (SUID) ===
When creating files and directories within a parent directory there are cases where it is very useful to be able to match the owner or group of the new files or directories to the parent directory's owner or group automatically. By setting the Set User ID (SUID) permission on a directory, files and directories created in that directory will inherit that owner or group. The storage quotas on Cedar and Graham project spaces are enforced by group. Depending on a file's group it will count towards a different storage quota. By setting the SUID of a directory's group any files created in it will have the same group as the parent directory and will count towards the same quota as that parent directory. Lets walk through an example.
When creating files and directories within a parent directory there are cases where it is very useful to be able to match the owner or group of the new files or directories to the parent directory's owner or group automatically. By setting the Set User ID (SUID) permission on a directory, files and directories created in that directory will inherit that owner or group. The storage quotas on Cedar and Graham project spaces are enforced by group. Depending on a file's group it will count towards a different storage quota. By setting the SUID of a directory's group any files created in it will have the same group as the parent directory and will count towards the same quota as that parent directory. To illustrate the use of SUID lets walk through an example.


Start by checking the groups that <code>someuser</code> belongs to with the <code>groups</code> command.
Start by checking the groups that <code>someuser</code> belongs to with the <code>groups</code> command.
cc_staff
1,486

edits

Navigation menu