$
학습 Linux 안내서
ko
XP:0
퀘스트 39ACL Enforcer
+275 XP

Access Control Lists (getfacl & setfacl)

이 퀘스트를 위한 인터랙티브 터미널 시작→설치 불필요 • 브라우저에서 바로 실행

개념 및 개요

Standard Linux permissions only support one user owner, one group, and others. When complex enterprise collaboration requires granting distinct rights to multiple users or groups on a single file, POSIX Access Control Lists (ACLs) are used:

- getfacl : Reads and displays the file's extended ACL entries (user, group, mask, other).
- setfacl -m u:: : Modifies the ACL to grant specific permissions (r, w, x) to an individual user without changing the file owner.
- Notice that when a file has an ACL, ls -l displays a + symbol at the end of the permission string (e.g., -rw-rw-r--+).

Inspect and grant fine-grained permissions on /home/learner/notes.txt:
1. Run getfacl notes.txt to inspect its existing Access Control List entries.
2. Grant the user deployer read and write permissions by running setfacl -m u:deployer:rw notes.txt.

명령어 구문 참조

Command / SyntaxDescription
getfacl notes.txtDisplay Access Control List entries for file
setfacl -m u:deployer:rw notes.txtGrant fine-grained user permissions with setfacl -m

검증 목표

  • ○
    Run getfacl on notes.txt
  • ○
    Grant deployer read/write ACL (setfacl -m u:deployer:rw notes.txt)

퀘스트를 완료할 준비가 되셨나요? 39?