mac idea破解版 执行sh文件出现 user/XXXXX/.profile Permission denied

302 阅读1分钟

idea破解版

转载:r86oxhhvu2.feishu.cn/docx/doxcns…

作者:胖虎F

执行这一步的时候

image-20231008235224842.png 在赋予scripts文件777的操作权限之后,你仍然会看到permission denied

这是因为user/【你的用户名】/.profile 等文件不属于【你的用户名】

执行下面三句将下面三个文件的所有权变为【你的用户名】

sudo chown 你的用户名 ~/.profile
sudo chown 你的用户名 ~/.bash_profile
sudo chown 你的用户名 ~/.zshrc 

再执行sh文件就不会报错