From owner-freebsd-questions@FreeBSD.ORG Mon Oct 4 19:24:20 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 511DD16A4CE for ; Mon, 4 Oct 2004 19:24:20 +0000 (GMT) Received: from home.mnet.bg (home.mnet.bg [193.110.223.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id A64CE43D46 for ; Mon, 4 Oct 2004 19:23:33 +0000 (GMT) (envelope-from dpenev@mnet.bg) Received: from localhost (home [127.0.0.1]) by home.mnet.bg (Postfix) with ESMTP id 213D23B2F6; Mon, 4 Oct 2004 22:23:29 +0300 (EEST) Received: from venus.dpsca.bg (ip220-81.mnet.bg [193.110.220.81]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by home.mnet.bg (Postfix) with ESMTP id 9F6C93B2EE; Mon, 4 Oct 2004 22:23:13 +0300 (EEST) Received: from earth.dpsca.bg (earth.dpsca.bg [192.168.1.1]) by venus.dpsca.bg (8.12.11/8.12.11) with ESMTP id i94JN9mq006884 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 4 Oct 2004 22:23:09 +0300 (EEST) Received: (from dpenev@localhost) by earth.dpsca.bg (8.13.1/8.13.1/Submit) id i94JMp7k002080; Mon, 4 Oct 2004 22:22:51 +0300 (EEST) (envelope-from dpenev) Date: Mon, 4 Oct 2004 22:22:51 +0300 From: Dancho Penev To: "Sergey Velikanov [UzPAK]" Message-ID: <20041004192251.GA852@earth.dpsca.bg> References: <1478419664.20041004114752@uzpak.uz> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oyUTqETQ0mS9luUI" Content-Disposition: inline In-Reply-To: <1478419664.20041004114752@uzpak.uz> User-Agent: Mutt/1.4.2.1i X-Virus-Scan: smtp-vilter X-SMTP-Vilter-Version: 1.1.5 X-SMTP-Vilter-Backend: vilter-clamd X-SMTP-Vilter-Status: clean X-Virus-Scanned: by amavisd-new-2.1.0 (Debian GNU/Linux) at mail.mnet.bg cc: freebsd-questions@FreeBSD.ORG Subject: Re: ACL and write permission X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 19:24:20 -0000 --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 04, 2004 at 11:47:52AM +0500, Sergey Velikanov [UzPAK] wrote: >Date: Mon, 4 Oct 2004 11:47:52 +0500 >From: "Sergey Velikanov [UzPAK]" >To: freebsd-questions >Subject: ACL and write permission > >Hi again > >I can't add write permission via ACL > >mkdir /dir/docs=20 >chown user:user /dir/docs=20 >setfacl -n -dm u::rwx,g::rx,o::,u:user2:rwx,m::rwx /dir/docs=20 >setfacl -m u:user2:rwx /dir/docs=20 >chmod 750 /dir/docs=20 > >I create file in /dir/docs, but user2 have only read permission, That's because when new file is creating file permissions are get from directory's default ACL, and then they are mask with umask. The entries, that are mask, are u::, m:: and o::, so if you have umask 022 (which is default) file's acl mask entry is set to "r". Robert Watson has plan acl mask to override umask, but he doesn't realize that yet. >getfacl says that #efective rights r--, how should i set ACL to >/dir/docs if I want give write permission to user2 > > >Sergey Velikanov >Technical Division >National Data Network "UzPAK" >tel +(99871) 114-6326 >e-mail: vgray@uzpak.uz >http://www.uzpak.uz/ > > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.or= g" > --=20 Dancho Penev Home page: http://www.mnet.bg/~dpenev GnuGP public key: http://www.mnet.bg/~dpenev/gnupg.asc Key fingerprint: E88D 8B7B 3EF6 E9C8 C5D2 7554 2AA8 C347 71A1 4277 --oyUTqETQ0mS9luUI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBYaMLKqjDR3GhQncRAoBaAKCIN8D6El0Wp6FEqID1qCFwii5MdACgk1JD isIQtSXXVx8arvNa19aYvvk= =aSKp -----END PGP SIGNATURE----- --oyUTqETQ0mS9luUI--