How to Install, Implement or Configure Access Control List (ACL) in CentOS 7 - Cloud Network

Networking | Support | Tricks | Troubleshoot | Tips

Buymecoffe

Buy Me A Coffee

Monday, October 14, 2019

How to Install, Implement or Configure Access Control List (ACL) in CentOS 7

Image result for How to Install ACL in CentOS 7




 1.  Create required users & group.
#  useradd  tom
#  groupadd salesgrp
#  groupadd fingrp
#  mkdir /salesdept
#  useradd  -g  salesgrp  Karen
#  useradd  -g  salesgrp  John
#  useradd  -G  fingrp  tom
#  useradd  -G  fingrp  meet

2.  Add a file by using  ‘cat’  command.

#  cat  >   abc.txt

3. To apply acl’s on users & groups
#  setfacl  -m


4. To check acl list
#  getfacl  abc.txt