Sharing data: Difference between revisions

Jump to navigation Jump to search
(Added discussion and examples of SUID)
Line 81: Line 81:
-rw-rw-r-- 1 someuser  someuser    0 Oct 13 19:38 test01.txt
-rw-rw-r-- 1 someuser  someuser    0 Oct 13 19:38 test01.txt
</source>
</source>
we see that it is created belonging to <code>someuser<code>'s default group <code>someuser</code>. If we want a newly created file to belong to the same group as the parent folder we can set the SUID permission on the parent directory.
we see that it is created belonging to <code>someuser</code>'s default group <code>someuser</code>. If we want a newly created file to belong to the same group as the parent folder we can set the SUID permission on the parent directory.
<source lang="console">
<source lang="console">
[someuser@server]$ chmod g+s dirTest
[someuser@server]$ chmod g+s dirTest
cc_staff
1,486

edits

Navigation menu