<div class="gmail_quote">On Fri, Feb 10, 2012 at 9:05 PM, <span dir="ltr"><<a href="mailto:timriley@appahost.com">timriley@appahost.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> -------- Original Message --------<br>
> Subject: [vox-tech] Default directory permissions<br>
> From: "Richard S. Crawford" <<a href="mailto:richard@underpope.com">richard@underpope.com</a>><br>
> Date: Fri, February 10, 2012 5:17 pm<br>
> To: "lugod's technical discussion forum" <<a href="mailto:vox-tech@lists.lugod.org">vox-tech@lists.lugod.org</a>><br>
><br>
><br>
> I have a directory on my server which has several people that can write to<br>
> it. Each person has their own username but they all belong to the same<br>
> group. I would like to make sure that every file and directory that is<br>
> created in that directory are group-writable. In other words, if Rita<br>
> (member of group psacln) creates a file or subdirectory, then Ginger (also<br>
> a member of group psacln) should be able to write to it or delete it, and<br>
> 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'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 "umask 0002" >> /etc/profile<br>
<br>
The key is the s-bit set on the directory. This has the special meaning<br>
of setting new files' and directories' 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'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'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>