Hi,
On Tue, Sep 19, 2006 at 01:53:13PM +0200, Stefán István wrote:
> We have a file server, and there are a common directory for a group of a
> users. I set this common folder's permission to 2775 and that results that a
> newly created file or directory will have the same goup owner as the common
> dir. But the problem is, that if someone creates a file or a directory in
> this common folder, the permissions will be 644 or 755, and so the other
> users in the same group can't write that file or directory, only if the
> creator of the entry sets it manually to 664 or 775. Is there any way to tell
> the Linux to automatically set the rights to 664 or 775 in this common
> directory (and only in this)?
It depends on your setup, if you're using bash, you can subtitute cd
with a new function:
cd () {
if ....; then
umask 0002
else
umask 0022
fi
command cd $@
}
Bye.
--
* Pillon Matteo
--
[email protected] mailing list