mkdir: cannot create directory '/log': Permission denied
时间: 2024-04-25 15:21:22 浏览: 173
create_directory_struct:用于创建目录结构的Shell脚本
回答: 报错"mkdir: cannot create directory '/log': Permission denied"是因为当前用户没有权限在根目录下创建/log目录。\[3\]这可能是因为你没有足够的权限来创建目录。你可以尝试使用sudo命令来运行mkdir命令,以获取足够的权限来创建目录。例如,你可以尝试运行sudo mkdir /log来创建目录。如果你仍然遇到权限问题,你可能需要联系系统管理员或拥有适当权限的用户来创建目录。
#### 引用[.reference_title]
- *1* [mkdir: cannot create directory ‘.ssh’: Permission denied](https://blog.csdn.net/qq_35078688/article/details/120786781)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [mkdir: cannot create directory ‘a1’: Permission denied](https://blog.csdn.net/qq_69967376/article/details/127171185)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [mkdir: cannot create directory ‘/var/lib/grafana/plugins‘: Permission denied](https://blog.csdn.net/github_35631540/article/details/114402864)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文