I simply can't control the permissions

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.
Locked
heltinde

I simply can't control the permissions

Post by heltinde »

Hi guys

If I create folders inside CMSMS (image manager), I can't upload to them, because I get permission error. Then I try to change the permissions manually, but I'm forced to delete the folder an create a new one before I can chmod 777.

How do I tell CMSMS to create the right permissions?

I use CMSMS 1.02 and the server is debian based.
Dieter
Forum Members
Forum Members
Posts: 29
Joined: Thu May 18, 2006 12:21 pm

Re: I simply can't control the permissions

Post by Dieter »

Hi heltinde,

I think you should try it in the config.php:

Code: Select all

#Permissions for uploaded files.  This only really needs changing if your
#host has a weird permissions scheme.
$config['default_upload_permission'] = '777';
Please tell if that helps.

Best wishes,
Dieter
heltinde

Re: I simply can't control the permissions

Post by heltinde »

Hi Dieter

I tried your suggestion, but the folders I create, still get an unchangeable 751 instead of 777.

Strange. Do you have other ideas?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: I simply can't control the permissions

Post by calguy1000 »

Check the file creation mask in the system settings.  Try setting it to 000
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
heltinde

Re: I simply can't control the permissions

Post by heltinde »

Now the file creatation mask is 000 and the new folders get 777, but they are still not willing to accept uploaded files. What can be blocking?
heltinde

Re: I simply can't control the permissions

Post by heltinde »

The problem still persists - I'm also not able to install modules via xml upload. Perhaps I can't fix this, but I would like an explanation - perhaps my web host can make some changes in order to fix it?

/Lise  :-\
benn

Re: I simply can't control the permissions

Post by benn »

I've got the same problem. Been searching this forum for days but still no answers.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: I simply can't control the permissions

Post by tsw »

If your hoster runs php in safe mode there is not much we can do now, there are plans for having a ftp class which would do file creation but its still just an idea and quite a bit to implement.

safe mode is a lousy option for isps but as it is a easy option to create some feeling of security hosts use it (and then they have perl active at the same server with full rights, doh)
heltinde

Re: I simply can't control the permissions

Post by heltinde »

I ran phpinfo, and here is the output: http://test.intetnet.dk/phpinfo.php (is it unsafe to publish that info?)
I've also attached the screendump from installation.

Do these informations conclude, that permission problems will persist? Soon I will be finished making a big website based on cmsms, and I'm a bit sad I can't give the costumer the possibility to upload from inside cmsms (btw - it's the best cms I've seen EVER!).

If I ask my host to turn safe mode off, will he then start laughing because it's difficult? I don't know much about servers...

/Lise

[gelöscht durch Administrator]
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: I simply can't control the permissions

Post by tsw »

yup phpinfo says

safe_mode On

so you most probably will end up with permission problems. Safemode is a hackish attempt to onlu allow php scripts to touch files that have same uid which is fine as long as you create all the files. Problems start arising when apache process creates files for you (like thumbnails or new folders) then some files are owned by other users and php safe mode doesnt allow touching them.

hope this clarifies the situation
heltinde

Re: I simply can't control the permissions

Post by heltinde »

Thanx for the explanation
Locked

Return to “CMSMS Core”