Permissions set by installation via XML

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am

Permissions set by installation via XML

Post 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
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Permissions set by installation via XML

Post 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.
User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am

Re: Permissions set by installation via XML

Post 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'.
Post Reply

Return to “CMSMS Core”