From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GPerP-0003td-QE for garchives@archives.gentoo.org; Tue, 19 Sep 2006 12:38:00 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8JCaJoB015536; Tue, 19 Sep 2006 12:36:19 GMT Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k8JCVWVl005118 for ; Tue, 19 Sep 2006 12:31:33 GMT Received: by nf-out-0910.google.com with SMTP id p46so163374nfa for ; Tue, 19 Sep 2006 05:31:32 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:subject:message-id:references:mime-version:content-type:content-disposition:content-transfer-encoding:in-reply-to:user-agent; b=UEZfHZb4cFjfIqeUvcN6H1DBy9t5Lj48FhXxK9tb5rUaQ7tCnNTleIdJnp6fc5pF84gs4D9LqVSXwsyNYSiywmVrV56YneaP5ENmxkx7v8HmYZ5AJTfl8Xk0mq8zNLsF09m4DTz+ab6ZmjjvfQ/CKrmzYBSNAowpusXBx4uKTKg= Received: by 10.78.157.8 with SMTP id f8mr3794779hue; Tue, 19 Sep 2006 05:31:31 -0700 (PDT) Received: from neptune.octopus ( [80.104.86.95]) by mx.gmail.com with ESMTP id 2sm14043356hue.2006.09.19.05.31.30; Tue, 19 Sep 2006 05:31:31 -0700 (PDT) Received: by neptune.octopus (Postfix, from userid 1000) id 6B701C02B; Tue, 19 Sep 2006 14:31:28 +0200 (CEST) Date: Tue, 19 Sep 2006 14:31:27 +0200 From: Matteo Pillon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] permissions for a common folder Message-ID: <20060919123127.GA30789@neptune.octopus> References: <200609191353.13620.stefi@geohidroterv.hu> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <200609191353.13620.stefi@geohidroterv.hu> User-Agent: Mutt/1.5.11 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k8JCaJoP015536 X-Archives-Salt: 2003f144-444b-4935-acd5-d6321da74eca X-Archives-Hash: 5eae6fa7b632a06bab991828e5699e26 Hi,=20 On Tue, Sep 19, 2006 at 01:53:13PM +0200, Stef=E1n Istv=E1n wrote: > We have a file server, and there are a common directory for a group of = a=20 > users. I set this common folder's permission to 2775 and that results t= hat a=20 > newly created file or directory will have the same goup owner as the co= mmon=20 > dir. But the problem is, that if someone creates a file or a directory = in=20 > this common folder, the permissions will be 644 or 755, and so the othe= r=20 > users in the same group can't write that file or directory, only if the= =20 > creator of the entry sets it manually to 664 or 775. Is there any way t= o tell=20 > the Linux to automatically set the rights to 664 or 775 in this common=20 > 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. --=20 * Pillon Matteo --=20 gentoo-user@gentoo.org mailing list