hi friends
i have a senario but i cant implement that
i create a file with some text in it & remove all permissions :
Code:
# echo "hi Linux" > myFile
# chmod a-rwx myFile
# ls -l myFile
---------- 1 root root 9 Jul 15 11:41 myFile
i have a user with name reza & i want only reza user can read this file & do this via ACL(Access Control List)
Code:
# setfacl -m u:reza:r myFile
output of ls -l is very ODD:
Code:
# ls -l myFile
----r-----+ 1 root root 9 Jul 15 11:41 myFile
read permission added for root group ,,,,what is it mean ?
Code:
# getfacl myFile
# file: myFile
# owner: root
# group: root
user::---
user:reza:r--
group::---
mask::r--
other::---
& in output of getfacl command, what is the mask ??
thank you for answring...