FILE_MANAGER upload permission

MtK

Verified User
Joined
Aug 2, 2007
Messages
405
Hello,
is it possible to set the permissions of files uploaded (or directories created) through the FILE_MANAGER?
 
Read this

Ability to get the filemanager to set the ownership and permissions you want.
http://directadmin.com/features.php?id=847

new options for the directadmin.conf for file uploads in the filemanager:

fm_owners=|USER|:|GROUP|
fm_file_permissions=644
fm_dir_permissons=755

Thos are the defaults.
You can change them to things like:

fm_owners=|USER|:apache
fm_file_permissions=640
fm_dir_permissons=750

if you have suPhp.

However, although you can change |USER| to something else, I would not advise you do. You'll likely end up with permission problems if the user can't read his own files.. but for those who know what they're doing, the ability is there.
 
thanks!

it works great for uploaded files, directories created, but not for:
* unzipped files (their content).
* compressed files (tar.gz)
 
Last edited:
Back
Top