【问题分析】产生 touch: cannot touch 'file1.txt': Permission denied 错误的原因是 因为 用户对 当前文件没有修改权限,所以需要授权!!! 使用命令 : cd../ 进入当前文件
【问题分析】产生 touch: cannot touch 'file1.txt': Permission denied 错误的原因是 因为 用户对 当前文件没有修改权限,所以需要授权!!!
使用命令 : cd../ 进入当前文件夹的父级目录,然后 执行命令:
sudo chmod -R 777 logs 【sudo chmod -R 777 文件夹名称(logs)】
chmod 使用方式:chmod [-cfvR] [–help] [–version] mode file…
来源地址:https://blog.csdn.net/qq_43143025/article/details/127445017
--结束END--
本文标题: 解决liunx报错touch: cannot touch ‘file1.txt‘: Permission denied【彻底解决,亲自验证有效】
本文链接: https://www.lsjlt.com/news/411227.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-06-11
2024-06-11
2024-06-11
2024-06-11
2024-06-11
2024-06-11
2024-06-11
2024-06-11
2024-06-11
2024-06-11
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0