Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
International Rescue Committe

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
Copyright Info
Terms of Use
Privacy Info
Masthead / Impressum
Your Account

Private Messages

News Archive
Submit News
User Articles
Web Links


The Web

Who's Online
There are currently, 60 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here




       chacl acl pathname...
       chacl -b acl dacl pathname...
       chacl -d dacl pathname...
       chacl -R pathname...
       chacl -D pathname...
       chacl -B pathname...
       chacl -l pathname...
       chacl -r pathname...


       chacl is an IRIX-compatibility command, and is  maintained
       for  those users who are familiar with its use from either
       XFS or IRIX.  Refer to the SEE ALSO section  below  for  a
       description  of  tools  which  conform more closely to the
       (withdrawn draft) POSIX 1003.1e standard  which  describes
       Access Control Lists (ACLs).

       chacl  changes  the  ACL(s)  for a file or directory.  The
       ACL(s) specified are applied to each file in the  ppaatthhnnaammee

       Each  ACL  is  a  string  which  is  interpreted using the
       acl_from_text(3) routine.  These strings are  made  up  of
       comma  separated  clauses  each  of  which is of the form,
       tag:name:perm.  Where ttaagg can be:

       "user" (or "u")
              indicating that the entry is a user ACL entry.

       "group" (or "g")
              indicating that the entry is a group ACL entry.

       "other" (or "o")
              indicating that the entry is an other ACL entry.

       "mask" (or "m")
              indicating that the entry is a mask ACL entry.

       nnaammee is a string which is the user or group name  for  the
       ACL entry.  A null nnaammee in a user or group ACL entry indi­
       cates the file's owner  or  file's  group.   ppeerrmm  is  the
       string  "rwx" where each of the entries may be replaced by
       a "-" indicating no  access  of  that  type,  e.g.  "r-x",
       "--x", "---".


       -b     Indicates  that  there  are two ACLs to change, the
              first is the file access ACL  and  the  second  the
              directory default ACL.

              rooted  at ppaatthhnnaammee(s).  This option was also added
              during the Linux port of XFS, and is not compatible
              with IRIX.


       A minimum ACL:

         chacl u::rwx,g::r-x,o::r-- file

       The  file  ACL  is set so that the file's owner has "rwx",
       the file's group has read and  execute,  and  others  have
       read only access to the file.

       An ACL that is not a minimum ACL, that is, one that speci­
       fies a user or  group  other  than  the  file's  owner  or
       owner's group, must contain a mask entry:

         cchhaaccll uu::::rrwwxx,,gg::::rr--xx,,oo::::rr----,,uu::bboobb::rr----,,mm::::rr--xx ffiillee11 ffiillee22

       To  set  the  default  and access ACLs on nneewwddiirr to be the
       same as on oollddddiirr, you could type:

         cchhaaccll --bb ``cchhaaccll --ll oollddddiirr || \\
             sseedd --ee ''ss//..**\\[[////'' --ee ''ss##//## ##'' --ee ''ss//]]$$////''`` nneewwddiirr


       chacl can replace the existing  ACL.   To  add  or  delete
       entries,  you  must  first do cchhaaccll --ll to get the existing
       ACL, and use the output to form the arguments to chacl.

       Changing the permission bits of a  file  will  change  the
       file  access  ACL  settings (see chmod(1)).  However, file
       creation mode masks (see umask(1))  will  not  affect  the
       access  ACL  settings  of  files  created  using directory
       default ACLs.

       ACLs are filesystem extended attributes and hence are  not
       typically  archived  or  restored  using  the conventional
       archiving utilities.  See  attr(5)  for  more  information
       about  extended attributes and see xfsdump(8) for a method
       of backing them up under XFS.


       getfacl(1),      setfacl(1),      chmod(1),      umask(1),
       acl_from_text(3), acl(5), xfsdump(8)

September 2001          ACL File Utilities               CHACL(1)



Security Code
Security Code
Type Security Code

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!

Amazon Wish List

Did You Know?
The Linux Tutorial welcomes your suggestions and ideas.


Tell a Friend About Us

Bookmark and Share

Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.09 Seconds