linux - Ubuntu prompts permission denied when executing sh
怪我咯
怪我咯 2017-05-16 13:23:36
0
4
863

My Baidu website said this works$ sudo chmod -R 777 myResources But it didn’t work after trying it. Is there any way to solve it?

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(4)
淡淡烟草味

I want to authorize the script and then execute it

chmod 777 ./redis.sh  

Also when I saw you executing chmod时, 报错command not found! 这可能跟你执行sudo有关, 你可能没有配置好, 导致sudo时没有携带环境变量, 找不到命令, 你可以用绝对路径去执行, 或者不用sudo, 直接 chmod .....(省略)

淡淡烟草味
sudo sh mysql.sh
Peter_Zhu

One suggestion, if you use sh script this way, you may get into trouble. The default shell of ubuntu is dash, so an error will be reported~

给我你的怀抱

I also tried it like this. Why is there no response? chmod 777 ./redis.sh

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template