chmod -R 755 /www/admin/www.shuadan.com
时间: 2023-10-06 09:14:49 浏览: 166
这是一个Linux命令,意思是将目录 /www/admin/www.shuadan.com 及其子目录下的所有文件和文件夹的权限设置为755。755权限表示所有者具有读、写、执行权限,组用户和其他用户具有读、执行权限,但没有写权限。请注意,对于某些文件或目录,这个权限设置可能过于宽松或者过于严格,具体根据实际情况来决定。
相关问题
root@sz-desktop:/media/root/F498-910E# chmod 777 ./ chmod: 更改"./" 的权限: 只读文件系统 root@sz-desktop:/media/root/F498-910E# sudo chmod 777 ./ chmod: 更改"./" 的权限: 只读文件系统
It seems like you are trying to change the permissions of a file or directory, but the file system is read-only, which means that you cannot make any changes to it.
If you need to modify the file or directory, you will need to remount the file system as read-write. You can do this by running the following command:
```
sudo mount -o remount,rw /media/root/F498-910E
```
After running this command, you should be able to change the permissions of the file or directory using the `chmod` command.
chmod -R 777 /opt/html/
引用\[1\]:解决办法:修改/opt/html/目录的读写权限,或者是把nginx的启动用户改成目录的所属用户,重启Nginx即可解决 chmod -R 777 /opt/html/。\[1\]这个命令将/opt/html/目录及其子目录下的所有文件和文件夹的权限设置为可读可写可执行。这样做的目的是为了确保nginx能够正常访问和操作这些文件。然而,使用chmod -R 777命令修改大批量系统文件的权限是不推荐的,因为这样做可能会导致系统的安全性问题。因此,在使用chmod命令时,应该谨慎考虑权限的设置,避免给文件和目录赋予过高的权限。
#### 引用[.reference_title]
- *1* [Nginx 出现403 Forbidden 的几种解决方案](https://blog.csdn.net/weixin_44138647/article/details/103589130)[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^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [centos7下误执行chmod -R 777 /后的权限修复方法](https://blog.csdn.net/weixin_29199873/article/details/116104625)[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^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文