<div class="gmail_quote">On Fri, Feb 10, 2012 at 9:05 PM,  <span dir="ltr">&lt;<a href="mailto:timriley@appahost.com">timriley@appahost.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

&gt; -------- Original Message --------<br>
&gt; Subject: [vox-tech] Default directory permissions<br>
&gt; From: &quot;Richard S. Crawford&quot; &lt;<a href="mailto:richard@underpope.com">richard@underpope.com</a>&gt;<br>
&gt; Date: Fri, February 10, 2012 5:17 pm<br>
&gt; To: &quot;lugod&#39;s technical discussion forum&quot; &lt;<a href="mailto:vox-tech@lists.lugod.org">vox-tech@lists.lugod.org</a>&gt;<br>
&gt;<br>
&gt;<br>
&gt; I have a directory on my server which has several people that can write to<br>
&gt; it. Each person has their own username but they all belong to the same<br>
&gt; group. I would like to make sure that every file and directory that is<br>
&gt; created in that directory are group-writable. In other words, if Rita<br>
&gt; (member of group psacln) creates a file or subdirectory, then Ginger (also<br>
&gt; a member of group psacln) should be able to write to it or delete it, and<br>
&gt; vice versa.<br>
<br>
The way to achieve group collaboration is to have new files and<br>
directories<br>
become the group name of the group, not the default group name of the<br>
creator. Also, new files and directories need to have the group&#39;s<br>
write bit set. Here are the commands:<br>
<br>
1) sudo chmod g+wxs .<br>
2) sudo chgrp psacln .<br>
3) sudo echo &quot;umask 0002&quot; &gt;&gt; /etc/profile<br>
<br>
The key is the s-bit set on the directory. This has the special meaning<br>
of setting new files&#39; and directories&#39; group name to the group name<br>
of the directory, not the creator.<br>
<br>
The umask command says to always turn on the group&#39;s write bit for new<br>
files and directories.<br></blockquote><div><br></div><div>All of the users are members of the group psacln and when they create files or upload them via FTP, the files have the correct group assignment. However, even after going through the steps you outlined above, new files are not created with the proper permissions. When I FTP test.test with Rita&#39;s account, the file has permissions -rw-r--r-- set. I need it to be -rw-rw-r-- so that, say, Robin can edit or even overwrite test.test.</div>

<div><br></div><div> </div></div>-- <br>Sláinte,<br>Richard S. Crawford (<a href="mailto:richard@underpope.com" target="_blank">richard@underpope.com</a>) <a href="http://www.underpope.com" target="_blank">http://www.underpope.com</a><div>

Twitter: <a href="http://twitter.com/underpope" target="_blank">http://twitter.com/underpope</a><br>Facebook: <a href="http://www.facebook.com/underpope" target="_blank">http://www.facebook.com/underpope</a><br>Google+: <a href="http://gplus.to/underpope" target="_blank">http://gplus.to/underpope</a><br>

</div><br>