天天看点

Linux 普通用户执行命令, 报 chmod: changing permissions of '*' :Operation not permitted

报 changing permissions of ....... 原因是当前用户没有权限,可以执行命令赋值权限

# chmod 777 文件名

如果还是不行,只能切花root 用户去执行。

注意 su root 和 su -root 有区别的

su 默认切到 root

su 与su - 的区别:

su 是不改变当前变量

su - 是切换到用户的变量

su只能获得root的执行权限,不能获得环境变量,而su - 是切换到root并获得root的环境变量及执行权限.

Linux 普通用户执行命令, 报 chmod: changing permissions of '*' :Operation not permitted
Linux 普通用户执行命令, 报 chmod: changing permissions of '*' :Operation not permitted
Linux 普通用户执行命令, 报 chmod: changing permissions of '*' :Operation not permitted

继续阅读