Penguin
Diff: AccessControlLists
EditPageHistoryDiffInfoLikePages

Differences between version 14 and predecessor to the previous major change of AccessControlLists.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 14 Last edited on Thursday, September 30, 2004 9:58:19 am by DanielLawson Revert
Older page: version 11 Last edited on Thursday, September 30, 2004 8:52:59 am by JohnMcPherson Revert
@@ -38,21 +38,32 @@
  
 !!How to use this stuff 
  
 Right! Onto the juicy stuff. First off, you need to make sure your ext2/3 partitions are mounted with the `acl' option. If they aren't, you will get this: 
+<verbatim>  
  cyan /# setfacl -m u:rgh:rwx tmp 
  setfacl: tmp: Operation not supported 
+</verbatim>  
  
-So, make sure (acl) is in the options list. 
+So, make sure (acl) is in the options list in /etc/fstab for the patitions you want to use acls on .  
+EG:  
+<verbatim>  
+ /dev/sda7 /tmp ext3 defaults,acl 0 2  
+</verbatim>  
  
 !!!ACL Basics 
  
 An ACL for use with the command line looks like [[gu]:<group|user>:perms. 
 So, to give group `techies' rwx access to /techie_folder, you would type: 
+<verbatim>  
  setfacl -m g:techies:rwx /techie_folder 
+</verbatim>  
 To see the results: 
+<verbatim>  
  getfacl /techie_folder 
+</verbatim>  
 You'll get something like this: 
+  
 !# file: techie_folder%%% 
 !# owner: root%%% 
 !# group: staff%%% 
 user::rwx%%% 
@@ -61,9 +72,10 @@
 mask::rwx%%% 
 other::r-x%%% 
  
 The -m just means you are modifying the ACL directly from the command line, as opposed to from stdin later. man setfacl reveals all! 
-%%% Additional informations can be found in the [man pages|http://acl.bestbits.at/man/man.shtml] or in this [article|http://www.linux-mag.com/2003-09/acls_01.html]. 
+  
+ Additional informations can be found in the [man pages|http://acl.bestbits.at/man/man.shtml] or in this [article|http://www.linux-mag.com/2003-09/acls_01.html]. 
  
 !!!ACL's with Samba 
  
 Samba 3 supports using libacl to support full ACL access to Samba shares. You need to ensure it's compiled into Samba (it probably is) and install libacl. Then it seems like you don't have to do anything more. See http://www.bluelightning.org/linux/samba_acl_howto/ for a small howto.