7. Now let’s create the files under /etc to test the configuration.
[manmohan@kalwa2 test]$ pwd /etc/test [manmohan@kalwa2 test]$ touch 1 [manmohan@kalwa2 test]$ ls -ltr total 0 -rw-rw-r--. 1 manmohan manmohan 0 Jul 21 20:55 1 [manmohan@kalwa2 test]$ mkdir test2 [manmohan@kalwa2 test]$ cd test2 [manmohan@kalwa2 test2]$ touch test2 [manmohan@kalwa2 test2]$ pwd /etc/test/test2 [manmohan@kalwa2 test2]$
8. For multiple user fire below command.
setfacl -m user:manmohan:wrx,u:rahul:rw /etc/test/
9. For removing all permissions from the user with user rahul:
setfacl -x user:rahul /etc/test/
Leave a Reply