2017-12-29 27 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

私はそれがあなたの問題の解決策であることを願っています!

関連する問題