Friday, September 11, 2015

ACL

ACL (ACCESS CONTORL LIST)


  • Create a three users.
  • Create a /data directories.
  • Create a file under /data ( file,file1,file2…etc.)
# getfacl /data ( to check a permission of /data directoris)
# setfacl -m u:mms:x /data
(note: m =stands for modified, u=username)
ls –ld /data ( here showing + sign , it’s means acl permission is set to /data)
# setfacl -m u:student:- /data ( set 0 or null to student user, it means there is not an any permission to user (wrx) ).
#setfacl –m d:u:mansi:wrx /data
(permission set by recursively to the file not to the mansi user)
# setfacl –m u:mansi:wrx file
(to set acl permission to the file)


How to remove ACL permission


# setfacl -x u:student /data
#setfacl –x u:mms /data
#setfacl -x u:mansi /data
(ACL permission removing)
# getfacl /data (to check permission)
# setfacl –k /data (to remove defaults permission)
#setfacl –b /data (to remove binary level permission)



No comments:

Post a Comment

Linux Tables: Block All Incoming Traffic But Allow SSH

  This is very common scenario. You want to permit access to a remote machine only by SSH. You would like to block all incoming traffic to y...