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 1GPeby-0006XV-GB for garchives@archives.gentoo.org; Tue, 19 Sep 2006 12:22:03 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8JCKqMp005501; Tue, 19 Sep 2006 12:20:52 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k8JCGd9p015487 for ; Tue, 19 Sep 2006 12:16:39 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id B26FF644E3 for ; Tue, 19 Sep 2006 12:16:38 +0000 (UTC) Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14081-09 for ; Tue, 19 Sep 2006 12:16:31 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 7303164605 for ; Tue, 19 Sep 2006 12:16:30 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GPeWI-0007os-G5 for gentoo-user@gentoo.org; Tue, 19 Sep 2006 14:16:10 +0200 Received: from blueboticspc1.epfl.ch ([128.179.67.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Sep 2006 14:16:10 +0200 Received: from remy.blank_asps by blueboticspc1.epfl.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Sep 2006 14:16:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Remy Blank Subject: [gentoo-user] Re: permissions for a common folder Date: Tue, 19 Sep 2006 14:15:58 +0200 Message-ID: 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-2 X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: blueboticspc1.epfl.ch User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) In-Reply-To: <200609191353.13620.stefi@geohidroterv.hu> Sender: news X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Status: No, score=-2.561 required=5.5 tests=[AWL=0.038, BAYES_00=-2.599] X-Spam-Score: -2.561 X-Spam-Level: Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k8JCKqN5005501 X-Archives-Salt: 4fa64c20-1f58-4961-bd8a-02ae6426c988 X-Archives-Hash: c847c2bb83a5df4aeb3d53552202c778 Stef=E1n Istv=E1n wrote: > Is there any way to tell=20 > the Linux to automatically set the rights to 664 or 775 in this common=20 > directory (and only in this)? This is normally done by setting the umask to 002 instead of 022 for all users (in /etc/profile), and creating a separate primary group for every user with the same name as the user. Then all files and directories created by users will have 664 resp. 775 permissions. When creating files in "normal" directories, the files will have the "private" primary group of the user, and will therefore only be writable by the user. When creating files in directories with the SGID bit set, the group will be the same as the directory, and the file will be writable by all members of the group. This is the default strategy in RedHat distributions (or at least it was when I switched to Gentoo, around 9.0 or so). You might be able to get the same effect locally (i.e. only in your shared directory) by using POSIX ACLs. See 'man acl' for more info. -- Remy Remove underscore and suffix in reply address for a timely response. --=20 gentoo-user@gentoo.org mailing list