Sharing data: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 87: Line 87:
-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>
If we are in <code>/project</code> this is probably not what we want. We want a newly created file to belong to the same group as the parent folder. Set the SGID permission on the parent directory like so:
If we are in <code>/project</code> this is probably not what we want. We want a newly created file to belong to the same group as the parent folder. Set the <tt>setGID</tt> permission on the parent directory like so:
<source lang="console">
<source lang="console">
[someuser@server]$ chmod g+s dirTest
[someuser@server]$ chmod g+s dirTest
rsnt_translations
56,420

edits

Navigation menu