Print this page
4023 - Typo in file(1) manpage and various others
   1 '\" te
   2 .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved.
   3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   6 .TH ACL 5 "Sep 29, 2008"
   7 .SH NAME
   8 acl \- Access Control Lists
   9 .SH DESCRIPTION
  10 .sp
  11 .LP
  12 Access control lists (ACLs) are discretionary access control mechanisms that
  13 grant and deny access to files and directories. Two different ACL models are
  14 supported in the Solaris release:POSIX-draft ACLs and NFSv4 ACLs.
  15 .sp
  16 .LP
  17 The older, POSIX-draft model is supported by the UFS file system. This model is
  18 based on a withdrawn ACL POSIX specification that was never standardized. It
  19 was subsequently withdrawn by the POSIX committee.
  20 .sp
  21 .LP
  22 The other model is based on the standards of the NFSv4 working group and is an
  23 approved standard from the Internet Engineering Task Force (IETF). The ZFS file
  24 system uses the NFSv4 model, and provides richer semantics and finer grained
  25 permission capabilities than the POSIX-draft model.
  26 .SS "\fBPOSIX\fR-draft \fBACL\fRs"


 795 if (error == 0) {
 796 error = acl_set("file4", aclp)
 797 acl_free(aclp);
 798 }
 799 \&...
 800 .fi
 801 .in -2
 802 
 803 .LP
 804 \fBExample 3 \fRDetermining if a File has a Trivial ACL
 805 .sp
 806 .LP
 807 Use the following to determine if a file has a trivial ACL:
 808 
 809 .sp
 810 .in +2
 811 .nf
 812 istrivial = acl_trivial("file")
 813 
 814 if (istrivial == 0)
 815 printf("file %s has a trivial ACL\n", file);
 816 else
 817 printf("file %s has a NON-trivial ACL\n", file);
 818 \&...
 819 .fi
 820 .in -2
 821 
 822 .LP
 823 \fBExample 4 \fRRemoving all ACLs from a File
 824 .sp
 825 .LP
 826 Use the following to remove all ACLs from a file, and set a new mode, owner,
 827 and group:
 828 
 829 .sp
 830 .in +2
 831 .nf
 832 error = acl_strip("file", 10, 100, 0644);
 833 \&...
 834 .fi
 835 .in -2
 836 
 837 .SH SEE ALSO
   1 '\" te
   2 .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved.
   3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   6 .TH ACL 5 "Sep 10, 2013"
   7 .SH NAME
   8 acl \- Access Control Lists
   9 .SH DESCRIPTION
  10 .sp
  11 .LP
  12 Access control lists (ACLs) are discretionary access control mechanisms that
  13 grant and deny access to files and directories. Two different ACL models are
  14 supported in the Solaris release:POSIX-draft ACLs and NFSv4 ACLs.
  15 .sp
  16 .LP
  17 The older, POSIX-draft model is supported by the UFS file system. This model is
  18 based on a withdrawn ACL POSIX specification that was never standardized. It
  19 was subsequently withdrawn by the POSIX committee.
  20 .sp
  21 .LP
  22 The other model is based on the standards of the NFSv4 working group and is an
  23 approved standard from the Internet Engineering Task Force (IETF). The ZFS file
  24 system uses the NFSv4 model, and provides richer semantics and finer grained
  25 permission capabilities than the POSIX-draft model.
  26 .SS "\fBPOSIX\fR-draft \fBACL\fRs"


 795 if (error == 0) {
 796 error = acl_set("file4", aclp)
 797 acl_free(aclp);
 798 }
 799 \&...
 800 .fi
 801 .in -2
 802 
 803 .LP
 804 \fBExample 3 \fRDetermining if a File has a Trivial ACL
 805 .sp
 806 .LP
 807 Use the following to determine if a file has a trivial ACL:
 808 
 809 .sp
 810 .in +2
 811 .nf
 812 istrivial = acl_trivial("file")
 813 
 814 if (istrivial == 0)
 815 printf("file %s has a trivial ACL\en", file);
 816 else
 817 printf("file %s has a NON-trivial ACL\en", file);
 818 \&...
 819 .fi
 820 .in -2
 821 
 822 .LP
 823 \fBExample 4 \fRRemoving all ACLs from a File
 824 .sp
 825 .LP
 826 Use the following to remove all ACLs from a file, and set a new mode, owner,
 827 and group:
 828 
 829 .sp
 830 .in +2
 831 .nf
 832 error = acl_strip("file", 10, 100, 0644);
 833 \&...
 834 .fi
 835 .in -2
 836 
 837 .SH SEE ALSO