Thursday, March 12, 2015

Access ACLS Setting

ACL-

Access Control List (ACL) provides an additional, more flexible permission mechanism for file systems. It is designed to assist with UNIX file permissions. ACL allows you to give permissions for any user or group to any disc resource.  


There are two types of ACLs: access ACLs and default ACLs. An access ACL is the access control list for a specific file or directory. A default ACL can only be associated with a directory



Setting  access   control  for User-

  
# mkdir    /acl 
# chmod   777  /acl 
# useradd          ram 
# useradd          raj 
# ls 
  
# setfacl   -m    u:ram:r_x/acl 
# setfacl   -m    u:raj:_wx/acl 
# getfacl   /acl 

Setting  access   control  for   agroup 



# groupadd       ptr 

# useradd          rajini 
# useradd          vinoth 
# useradd          sunil 
# mkdir            /acl2 
# usermod        -G    ptr    vinth 
# usermod        -G    ptr    rajini 
# chmod     777        /acl2 
# setfacl   -m    g:ptr:r_x          /acl2 
Previous Post
Next Post

0 comments: