cPanel & WHM Version 94 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!

Ability to set the umask for cPanel's File Manager

Jeff Shotnik shared this idea 8 years ago
Open Discussion

As a Server Administrator, I want the ability to set the umask for cPanel's File Manager, so that I have higher file system security.


  1. Set umask for cPanel's file manager to tighten security. Current umask is 022 which can be an issue in a shared environment.
  2. Umask can be set within other services (ssh, ftp, php) - just missing this functionality for the File Manager.

Comments (5)

photo
2

I like this feature, but it depends heavily on your setup:


With suexec enabled 750 and 640 are fine for a PHP file, but what about files not executed by suexec? (images, static files, flash...)


You should have nobody (or your current apache user) as a member of the user's group, and that would also make the umasking not so useful anymore.


Without suexec or for static files, the default 755 and 644 are ok.


- What's your current setup umask?

photo
1

Good point - but I believe it would be better to set a more strict mode on all files and let the user chmod static files, images, etc. if needed. I feel that a customer would be happier if you told them their file isn't accessible to Apache because of the default permission set, over telling them their database config file was read via an exploit within another account.


Within our cPanel templates I've adjusted the umask to 026 for ssh, ftp, and php.

photo
1

Good point - but I believe it would be better to set a more strict mode on all files and let the user chmod static files, images, etc. if needed. I feel that a customer would be happier if you told them their file isn't accessible to Apache because of the default permission set, over telling them their database config file was read via an exploit within another account.


Within our cPanel templates I've adjusted the umask to 026 for ssh, ftp, and php.

photo
1

Devs, please still consider this as an important feature request. Silent Ninja's points above are valid but no longer effect Apache when mod_ruid2 is enabled. Having the ability to set the defaults permissions for files/directories created with cPanel's File Manager is very important.

photo
1

Sounds nice, since we can manage easily.

Leave a Comment
 
Attach a file