Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Aug 2003 13:15:00 +0300
From:      Dancho Penev <dpenev@mnet.bg>
To:        Grzegorz Czaplinski <G.Czaplinski@prioris.mini.pw.edu.pl>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Default ACL entries.
Message-ID:  <20030803101500.GA528@earth.dpsca.bg>
In-Reply-To: <20030802163724.GE3090@prioris.mini.pw.edu.pl>
References:  <20030802163724.GE3090@prioris.mini.pw.edu.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
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@prioris.mini.pw.edu.pl>
>To: freebsd-questions@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



--=20
Dancho Penev



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