简体   繁体   中英

Why my Server Always Change automatically in Folder Permissions?

我有一个带有WHM / cPanel的centOS服务器,但是我的服务器有问题,有时候文件夹权限会自动更改,如果上传图片后带有网站文件夹变成755,那么在上传之前该文件夹是777 ...谢谢。

Upload means you perform an upload with a user to it's home directory and if the user and group of that directory is you only then for /home the umask value is 002 and if you upload a folder and you belong to a common group which is used by other users too the umask value for /home becomes to 022 so it makes the dir/folder permission as 755. So which user you are trying to upload that matters, upload with a user & group which are equal say janitra is the user and group is also janitra.

Thanks & Regards,
Alok Thaker

Thanks for your answer, heres my owner directories on my server

drwxr-x--- 57 user87127 nobody 4096 Sep 20 17:41 public_html/

look at my user group, it's nobody, how about that? Is that the problem?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM