mariovaldez.net
http://www.mariovaldez.net/webapps/forums/

Rechtevergabe beim Erstellen von Dateien und Beiträgen
http://www.mariovaldez.net/webapps/forums/viewtopic.php?f=3&t=17
Page 1 of 1

Author:  ThomasLpz [ 31 Mar 2003, 11:11 ]
Post subject:  Rechtevergabe beim Erstellen von Dateien und Beiträgen

Hallo Experten,

wenn ich im CMS-Modul Verzeichnisse auf dem Server anlegen, werden die Schreib- und Leserechte automatisch auf www gesetzt. Das heißt, nur mein Provider kann dann die Zugriffsrechte ändern. Ich selber kann mit chmod nichts mehr machen. :(

Wer kann helfen ? Wo muß ich im Script etwas ändern. Oder liegt es an der Betriebsart des Servers ( Apache ) ?

Gruß Thomas
http://www.thomas-lpz.de

Author:  mvaldez [ 14 Apr 2003, 17:14 ]
Post subject:  Permissions...

> wenn ich im CMS-Modul Verzeichnisse auf dem Server
> anlegen, werden die Schreib- und Leserechte
> automatisch auf www gesetzt. Das heißt, nur mein
> Provider kann dann die Zugriffsrechte ändern. Ich
> selber kann mit chmod nichts mehr machen.
> Wer kann helfen ? Wo muß ich im Script etwas
> ändern. Oder liegt es an der Betriebsart des
> Servers ( Apache ) ?


I will try to answer this in English, as I don't know German. I hope I'm understanding your problem. Sorry for this late answer.

I think you're saying that you cannot change the permissions or ownership of the files of the CMS module.
Well, the CMS module needs permissions to write in its directory (usually "cm/") to create the root directory (usually "cm/root") and the configuration file.

The PHP engine is running as the user of the Apache server (usually "nobody") so that user needs permissions to write in the CMS directory. The easier is to use chown and change the onwership of all the files and directory to "nobody" but you need shell access or you need to ask your hosting provider to do it.

Some hosting providers give you shell access but you cannot use chown. In that case a not-so-safe approach is to change the permissions of the CMS directory (only the directory) to allow read/write access to any user. That can usually be done without shell access, using FTP. However, is unsafe.

Another problem is when the hosting provider is using the safe-mode of PHP. In that case, the only solution is changing the ownership of the directory to "nobody".

Phprojekt also needs permissions to create its config file and to use the upload functions, how did you installed it? Maybe your hosting provider installed it?

Regards,

Mario A. Valdez-Ramirez.

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/