[vox-tech] Default directory permissions
timriley at appahost.com
timriley at appahost.com
Fri Feb 10 21:05:29 PST 2012
> -------- Original Message --------
> Subject: [vox-tech] Default directory permissions
> From: "Richard S. Crawford" <richard at underpope.com>
> Date: Fri, February 10, 2012 5:17 pm
> To: "lugod's technical discussion forum" <vox-tech at lists.lugod.org>
>
>
> I have a directory on my server which has several people that can write to
> it. Each person has their own username but they all belong to the same
> group. I would like to make sure that every file and directory that is
> created in that directory are group-writable. In other words, if Rita
> (member of group psacln) creates a file or subdirectory, then Ginger (also
> a member of group psacln) should be able to write to it or delete it, and
> vice versa.
The way to achieve group collaboration is to have new files and
directories
become the group name of the group, not the default group name of the
creator. Also, new files and directories need to have the group's
write bit set. Here are the commands:
1) sudo chmod g+wxs .
2) sudo chgrp psacln .
3) sudo echo "umask 0002" >> /etc/profile
The key is the s-bit set on the directory. This has the special meaning
of setting new files' and directories' group name to the group name
of the directory, not the creator.
The umask command says to always turn on the group's write bit for new
files and directories.
<snip>
More information about the vox-tech
mailing list