dongxiongshi9952
2014-10-12 15:04Ubuntu服务器文件夹权限
I have an uploads directory on my server, php upload works fine when folder's permission is set to 755 but if I make new dir inside uploads (uploads/subuploaddir) upload fails and I need to set 755 permission for this folder manually, so my question is how can I set 755 permission for uploads dir and all of it's future created sub directories?
PS. chmod -R 755 ...mypath/uploads doesn't work
Thanks in advance. All answers are very appreciated. Peter
UPDATE: Problem solved, my fault. PHP creates folders with permission 777 as default and I created folders for testing purposes through FTP manually, so it was created by another system user and with different permission.
- 点赞
- 回答
- 收藏
- 复制链接分享
2条回答
为你推荐
- Ubuntu 20.04 修改了唯一用户sudo 用户组的问题
- ubuntu
- 1个回答
- Ubuntu服务器文件夹权限
- upload
- permissions
- ubuntu
- php
- 2个回答
- 上传文件的权限
- linux
- permissions
- file-upload
- php
- 2个回答
- windows如何能访问到已被挂载的linux nfs共享目录
- linux
- centos
- ubuntu
- 3个回答
- linux ubuntu移动文件权限问题
- linux
- ubuntu
- 5个回答
换一换