dongxiongshi9952
dongxiongshi9952
2014-10-12 15:04

Ubuntu服务器文件夹权限

  • upload
  • ubuntu
  • permissions
  • php

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条回答

为你推荐

换一换