本文主要是介绍chmod: changing permissions of ‘*‘:Operation not permitted,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
linux 执行命令时,报 chmod: changing permissions of '*':Operation not permitted 。原因是当前用户没有权限,可以 chmod 777 给权限在执行。如果 chmod 还不行那就要切花成 root 用户。
# su root
# su -root
su 与su - 的区别:
su 是不改变当前变量
su - 是切换到用户的变量
su只能获得root的执行权限,不能获得环境变量,而su - 是切换到root并获得root的环境变量及执行权限.
这篇关于chmod: changing permissions of ‘*‘:Operation not permitted的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!