From: Matteo Pillon <matteo.pillon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] permissions for a common folder
Date: Tue, 19 Sep 2006 14:31:27 +0200 [thread overview]
Message-ID: <20060919123127.GA30789@neptune.octopus> (raw)
In-Reply-To: <200609191353.13620.stefi@geohidroterv.hu>
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
--
gentoo-user@gentoo.org mailing list
prev parent reply other threads:[~2006-09-19 12:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-19 11:53 [gentoo-user] permissions for a common folder Stefán István
2006-09-19 12:15 ` [gentoo-user] " Remy Blank
2006-09-20 8:01 ` Stefán István
2006-09-20 9:00 ` Remy Blank
2006-09-20 11:51 ` Stefán István
2006-09-20 12:52 ` Remy Blank
2006-09-19 12:23 ` [gentoo-user] " Alan McKinnon
2006-09-19 12:31 ` Matteo Pillon [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060919123127.GA30789@neptune.octopus \
--to=matteo.pillon@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox