小编reh*_*del的帖子

chmod:更改'my_script.sh'的权限:不允许操作

当我试图使shell脚本显示错误时,我必须做什么?

 [rehamadel@localhost bin]$ sudo vi my_script.sh
Run Code Online (Sandbox Code Playgroud)

[sudo] password for rehamadel: [rehamadel@localhost bin]$ ls -l my_script.sh

-rw-r--r--. 1 root root 52 Jul 30 19:25 my_script.sh
[rehamadel@localhost bin]$ chmod u+x my_script.sh
chmod: changing permissions of ‘my_script.sh’: Operation not permitted
Run Code Online (Sandbox Code Playgroud)

linux bash shell

8
推荐指数
2
解决办法
5万
查看次数

标签 统计

bash ×1

linux ×1

shell ×1