PermissionError: [Errno 13] Permission denied: '/home/thalles'
时间: 2023-10-16 09:08:01 浏览: 108
PermissionError: [Errno 13] Permission denied: '/home/thalles'是一个权限错误,表示当前用户没有足够的权限访问路径"/home/thalles"。
解决这个问题的方法是切换到拥有合适权限的用户并运行相应的命令。你可以使用以下命令进行切换用户并访问路径:
su [用户]
cd /home/xxx/xxx_script/bin
/bin/sh /home/xxxx/xxxx_script/bin/day_import.sh
同时,还需要确保你的代码中的路径设置是正确的。这意味着你需要确认代码中读取文件的路径是否正确。如果路径错误,你需要修改代码,使其指向正确的文件路径。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [PermissionError: [Errno 13] Permission denied: ‘/home/xxx/xxx_script/log/import.log](https://blog.csdn.net/weixin_44740756/article/details/128971114)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [labelme批量转化json文件时PermissionError: [Errno 13] Permission denied](https://download.csdn.net/download/qq_40957277/22331121)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文