diff options
author | chris <chris@FreeBSD.org> | 2001-12-30 03:44:40 +0000 |
---|---|---|
committer | chris <chris@FreeBSD.org> | 2001-12-30 03:44:40 +0000 |
commit | 37bd6082e6153b600c2f4672989595c955bf0860 (patch) | |
tree | 0e0d2b19fe8e534f327162ba001dd2c6be4ebb6b /share/man/man7 | |
parent | a6e7c78be57ebd99da59ac7e960f115badce24fd (diff) | |
download | FreeBSD-src-37bd6082e6153b600c2f4672989595c955bf0860.zip FreeBSD-src-37bd6082e6153b600c2f4672989595c955bf0860.tar.gz |
Document how to enable ACLs using extattrctl.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'share/man/man7')
-rw-r--r-- | share/man/man7/ufs.7 | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/share/man/man7/ufs.7 b/share/man/man7/ufs.7 index 2e4eec3..13877be 100644 --- a/share/man/man7/ufs.7 +++ b/share/man/man7/ufs.7 @@ -125,6 +125,36 @@ option, and it is recommended that is included as well, so that ACLs are enabled atomically upon mounting the file system. .El +.Pp +In order to enable support for ACLs, +two extended attributes must be available in the +.Dv EXTATTR_NAMESPACE_SYSTEM +namespace: +.Dq Li posix1e.acl_access , +which holds the access ACL, +and +.Dq Li posix1e.acl_default , +which holds the default ACL for directories. +If you are using UFS extended attributes, +the following commands may be used to +allocate space for and create the necessary EA backing files +for ACLs in the root of each file system. +In these examples, the root file system is used; +see +.Sx "Extended Attributes" +for more details. +.Pp +.Bd -literal -offset indent +mkdir -p /.attribute/system +cd /.attribute/system +extattrctl initattr -p / 388 posix1e.acl_access +extattrctl initattr -p / 388 posix1e.acl_default +.Ed +.Pp +On the next mount of the root file system, +the attributes will be automatically started +(if UFS_EXTATTR_AUTOSTART is included in the kernel configuration), +and ACLs will be enabled. .Ss Directory Hashing .Bl -tag -width 2n .It Cd options UFS_DIRHASH |