Default ACL entries.

Dancho Penev dpenev at mnet.bg
Sun Aug 3 05:18:50 PDT 2003


On Sat, Aug 02, 2003 at 06:37:24PM +0200, Grzegorz Czaplinski wrote:
>Date: Sat, 2 Aug 2003 18:37:24 +0200
>From: Grzegorz Czaplinski <G.Czaplinski at prioris.mini.pw.edu.pl>
>To: freebsd-questions at freebsd.org
>Subject: Default ACL entries.
>
>Hi there!
>Does anyone know how to set default ACL entries?
>Any examples how to use -d, -k, -X switches with setfacl?

# setfacl -dm u::rwx,u:nobody:rwx,m::rwx,g::rx,o::rx /foo
There are three required ACL entries: u::,g::,o::, that unlike files acls
doesn't exist when you set default acl for first time, so don't forget
to set them. (BTW I have patch for setfacl somewhere that check default
acl for missing entries)

# setfacl -k /foo
This will remove default acl for "foo" directory.

# setfacl -dX acls /foo
Where "acls" file contains entries like these:
u:nobody:rwx
g:somegroup:rx

>
>This is all different to Solaris... ;)
>Thanks,
>	gregory
>--
>Grzegorz Czaplinski <gregory at prioris.mini.pw.edu.pl>
>"The Power to Serve, Right for the Power Users!" - http://www.FreeBSD.org/
> Fingerprint: EB77 E19D CFA2 5736 810F  847C A70F A275 2489 469F



-- 
Dancho Penev


More information about the freebsd-questions mailing list