올바른 권한 및 소유권, chmod를 사용하여 여전히 "작업이 허용되지 않음" 메시지가 표시됨

올바른 권한 및 소유권, chmod를 사용하여 여전히 "작업이 허용되지 않음" 메시지가 표시됨

폴더(및 상위 폴더)를 소유한 그룹에 속해 있는데도 여전히 "작업이 허용되지 않습니다"라는 메시지가 나타납니다.

[acoder@box documents]$ chmod 770 customer123/
chmod: changing permissions of 'customer123/': Operation not permitted

디렉토리 개요:

[acoder@box documents]$ tree ../documents/

documents/
└── customer123
    ├── c1.pdf 
    ├── c2.pdf
    └── c3.pdf

소유권 및 권한:

[acoder@box documents]$ ll ../documents/
drwxrwx---. 5 apache salesteam 41 Apr 30  2019

[acoder@box documents]$ ll ../documents/customer123/
-rwxrwx---. 1 apache salesteam 32300 Apr 30  2019 c1.pdf
-rwxrwx---. 1 apache salesteam 31301 Apr 30  2019 c2.pdf
-rwxrwx---. 1 apache salesteam 33300 Apr 30  2019 c3.pdf

사용자가 acoder다음 그룹에 속해 있습니다 salesteam.

cat /etc/group

acoder:x:1000:
salesteam:x:1001:acoder

내가 왜 여기에 있는지 모르겠습니다 Operation not permitted. 내가 무엇을 놓치고 있나요?

답변1

syscall chmod 매뉴얼 페이지에서...

The effective UID of the calling process must match the owner of the file, or the process must be privileged

즉, 소유자 또는 높은 권한을 가진 ID만이 권한을 변경할 수 있습니다. 왜 이것이 exe의 매뉴얼 페이지에도 나타나지 않는지 모르겠습니다.

관련 정보