2017-12-29 9 views
-1
[[email protected] ~]$ chown root hello.txt 

chown: changing ownership of `hello.txt': Operation not permitted 

[[email protected] ~]$ chown ia982p hello.txt 

chown: changing ownership of `hello.txt': Operation not permitted 
[[email protected] ~]$ 

또한 파일에 불변 비트가 설정되어 있지 않습니다.파일의 소유권을 변경할 수 없습니다.

[[email protected] ~]$ lsattr hello.txt 
-------------e- hello.txt 

위의 해결을 도와 주시겠습니까?

+0

파일의 세부 사항을 표시해주십시오. 그냥 ls -l 파일입니다. – Utsav

답변

-1

sudo를 사용해 보셨습니까? 실행 후에 불변 플래그

을 해제하기 위해 그리고

chattr -i hello.txt

를 설정

chattr +i hello.txt : 또한

sudo chown ia982p hello.txt

같이하면 chattr 명령을 사용하여 불변 비트를 변경 첫 번째 명령은 불변 플래그가 설정되어야합니다 :

# lsattr hello.txt ----i-------- hello.txt

그 해결책을 알려주세요.

관련 문제