Unix 无法更改文件的所有权
此外,文件没有设置不可变位Unix 无法更改文件的所有权,unix,chmod,Unix,Chmod,此外,文件没有设置不可变位 [vg324y@ulpv0143 ~]$ chown root hello.txt chown: changing ownership of `hello.txt': Operation not permitted [vg324y@ulpv0143 ~]$ chown ia982p hello.txt chown: changing ownership of `hello.txt': Operation not permitted [vg324y@ulpv014
[vg324y@ulpv0143 ~]$ chown root hello.txt
chown: changing ownership of `hello.txt': Operation not permitted
[vg324y@ulpv0143 ~]$ chown ia982p hello.txt
chown: changing ownership of `hello.txt': Operation not permitted
[vg324y@ulpv0143 ~]$
有人能帮你解决以上问题吗?你试过使用sudo吗?
像
sudo chown ia982p hello.txt
此外,您可以使用chattr
命令更改不可变位:
chattr+i hello.txt
用于设置和
chattr-i hello.txt
用于取消设置不可变标志
执行第一个命令后,应设置不可变标志:
#lsattr hello.txt
----i------hello.txt
我希望这就是你问题的解决办法 你能展示一下文件的细节吗。只要ls-l文件。
[vg324y@ulpv0143 ~]$ lsattr hello.txt
-------------e- hello.txt