5. Fire the setfacl command as below:
[root@kalwa2 etc]# setfacl -R -m u:manmohan:wrx /etc/test/
-R give the recursive permission under /etc directory . If you don’t want to give you can ignore this option from the command
-m stands for modification.
U stands for user again for manmohan user with permission wrx.
6. Now verify the user access control for list for /etc directory.
[root@kalwa2 etc]# getfacl test # file: test # owner: root # group: root user::rwx user:manmohan:rwx group::r-x mask::rwx other::r-x [root@kalwa2 etc]#
Yes all properly set.
Leave a Reply