Page 1 of 1

Permissions set by installation via XML

Posted: Mon Oct 09, 2006 5:20 am
by Gregor
Hello,

I noticed that installing modules (for me since versoi 1.0.2 Maui) via xml also changes the permissions of directories and files to the webserver instead of keeping them to the one who logged on to the cms. This creates quite a few problems. Have a look at this forum topic http://forum.cmsmadesimple.org/http://p ... 949#p38949

In my case, I do have admin-rights on the server, but no root-rights. Therefore I'm not allowed to correct the permissions and user/group-settings. Two questions I have:
1. Is there a way to set the permissions back to the one logged on to the cms (without making use of someone with root-rights)?
2. If one install modules via XML, could the owner stay the as the one who logged on to the cms?


Thanks for your reaction,
Gregor

Re: Permissions set by installation via XML

Posted: Mon Oct 09, 2006 10:24 am
by Dee
The CMSMS admin users are stored in the database and have nothing to do with the system users on the webserver.
When a module is installed through XML the permissions are not changed to the webserver, the webserver process is the one that installs the files and folders, so they're automatically owned by the webserver. This means the webserver can also delete or overwrite the files (allowing you to deinstall or upgrade modules installed through XML using the CMSMS admin webinterface).
I think the File Creation Mask (umask) from the CMSMS global settings is used for module files as well, so you should be able to set other permissions.

Re: Permissions set by installation via XML

Posted: Mon Oct 09, 2006 11:10 am
by Gregor
Thanks Dee. The unmask is set to 022 (inmuy situation). While performing a change permissions (Extensions -> Modules), and checking the settings on the server afterwards, I don't see any change; it still belongs to 'apache'.