当我尝试更改所有权和权限时“不允许操作”

当我尝试更改所有权和权限时“不允许操作”

如何解决以下“不允许操作”问题?

~$ sudo nano /usr/local/bin/Fancontrol_Hddtemp
~$ chown root:root /usr/local/bin/Fancontrol_Hddtemp
chown: changing ownership of '/usr/local/bin/Fancontrol_Hddtemp': Operation not permitted
~$ chmod 755 /usr/local/bin/Fancontrol_Hddtemp
chmod: changing permissions of '/usr/local/bin/Fancontrol_Hddtemp': Operation not permitted

答案1

您应该是 root 才能更改所有权。以这种方式使用命令:

sudo chown root:root /usr/local/bin/Fancontrol_Hddtemp
sudo chmod 755 /usr/local/bin/Fancontrol_Hddtemp

相关内容