How To List Permissions In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Use the ls command to view permissions for a file or directory:
$ ls -l
2. Use the stat command to view permissions for a file or directory:
$ stat -c ‘%a %n’ *
3. Use the getfacl command to view ACLs (Access Control Lists) for a file or directory:
$ getfacl <filename>
4. Use the chmod command to change permissions for a file or directory:
$ chmod <permissions> <filename>
5. Use the setfacl command to set ACLs (Access Control Lists) for a file or directory:
$ setfacl -m <permissions> <filename>