Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 928 Bytes

ACLs.md

File metadata and controls

39 lines (24 loc) · 928 Bytes

Introduction

Access Control Lists are one of the most basic means of implementing security on a system.
ACLs are very intertwined with Linux file permissions.

Reminder:

  • r = permission to read
  • w = permission to write
  • x = permission to execute

When you run ls -l, you get the permissions for:

  • the file owner (User)
  • users belonging to the same group as the owner (Group)
  • all other users (Others)

getfacl & setfacl

To get a file ACL: getfacl filename

Example:
image

To make changes to a file ACL: setfacl -m u:username:rx filename
https://www.golinuxcloud.com/setfacl-getfacl-command-in-linux/

To remove all extended ACL entries: setfacl -b filename


ACL masks

src = https://www.howtogeek.com/how-acl-masks-let-you-fine-tune-file-permissions-in-linux/


EOF