Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Oct 2004 22:22:51 +0300
From:      Dancho Penev <dpenev@mnet.bg>
To:        "Sergey Velikanov [UzPAK]" <vgray@uzpak.uz>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: ACL and write permission
Message-ID:  <20041004192251.GA852@earth.dpsca.bg>
In-Reply-To: <1478419664.20041004114752@uzpak.uz>
References:  <1478419664.20041004114752@uzpak.uz>

next in thread | previous in thread | raw e-mail | index | archive | help

--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]" <vgray@uzpak.uz>
>To: freebsd-questions <freebsd-questions@freebsd.org>
>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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041004192251.GA852>