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 1GPx7N-0006Se-Kw for garchives@archives.gentoo.org; Wed, 20 Sep 2006 08:07:42 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8K86cYr000829; Wed, 20 Sep 2006 08:06:38 GMT Received: from mail.geo.hu (mail.geohidroterv.hu [193.226.243.121]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k8K81jeu005312 for ; Wed, 20 Sep 2006 08:01:45 GMT Received: from localhost (localhost [127.0.0.1]) by mail.geo.hu (Postfix) with ESMTP id 564BA3BABC for ; Wed, 20 Sep 2006 10:01:42 +0200 (CEST) Received: by mail.geo.hu (Postfix, from userid 1149) id 83FAB3BAF5; Wed, 20 Sep 2006 10:01:38 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.1.1-gr0 (2006-03-10) on mail.geo.hu X-Spam-Level: X-Spam-Status: No, score=-4.5 required=2.5 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.1-gr0 Received: from rendszergazda (unknown [192.168.1.150]) by mail.geo.hu (Postfix) with ESMTP id E7AAB3BABC for ; Wed, 20 Sep 2006 10:01:37 +0200 (CEST) From: =?iso-8859-2?q?Stef=E1n_Istv=E1n?= Organization: Geohidroterv Kft. To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: permissions for a common folder Date: Wed, 20 Sep 2006 10:01:43 +0200 User-Agent: KMail/1.8.3 References: <200609191353.13620.stefi@geohidroterv.hu> In-Reply-To: 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" Content-Disposition: inline Message-Id: <200609201001.43325.stefi@geohidroterv.hu> X-Virus-Scanned: by AMaViS 0.3.12 X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id k8K81jeu005312 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k8K86cZ7000829 X-Archives-Salt: ec4ddacb-8121-4e4f-b19e-5b0f2846189c X-Archives-Hash: e364b76ee085a2befb21041c5f7e5dac kedd 19 szeptember 2006 14.15 d=E1tummal Remy Blank ezt =EDrta: > 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 commo= n=20 > > directory (and only in this)? >=20 > This is normally done by setting the umask to 002 instead of 022 for al= l > users (in /etc/profile), and creating a separate primary group for ever= y > 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" primar= y > group of the user, and will therefore only be writable by the user. Whe= n > 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. >=20 > This is the default strategy in RedHat distributions (or at least it wa= s > when I switched to Gentoo, around 9.0 or so). >=20 > 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. Okay, I think I have to use acl. I've read its documentation, and set up = the=20 following acl's: setfacl -m d:u::rw /home/stefi/kepek/ setfacl -m d:g::rw /home/stefi/kepek/ setfacl -m d:o::r /home/stefi/kepek/ Now, if I create a file in this directory, it's permission will be 664 in= stead=20 of the default 644. That's very good. But if I create a directory it's permissons also will be 664. But I want = it to=20 be 775. How can I achive this? Thanks, Istvan --=20 gentoo-user@gentoo.org mailing list