Permissions, second try

Author Message

Trond Åge Kvalø

Thursday 07 October 2004 2:06:18 am

I have installed an eZ publish site on a shared host.

I'd like to keep my files and directories non writeable for others (or world).

On this host the apache user is nobody, thus all the files that I create with eZ publish are owned by nobody.

When I login via a shell account I am myuser:myuser.

Thus if I chown the var/ design/ and settings/ directories to nobody:nobody I won't be able to change files manually, and if I chown them to myuser:myuser eZpublish get permission errors.

So what actions would you guys reccomend to remedy this situation? For now I've just done a chmod 777 on all the mentioned directories and subdirectories, which I believe is not the optimal solution.

Any help is really appreciated.

best regards

trondåge

Marco Zinn

Saturday 09 October 2004 10:58:56 am

Hi,
as you are on a shared host, i guess, you cannot change much about users and user groups on that host.

When apache runs as "nobody", then i guess, it's user group is "nobody", too.
I'm not a *nix pro, but i fear, you can't do much here: As your shell/ftp user and the apache user "nobody" probably do not belong to the same user group, you need to grant write access to everyone.
If you can, you should try to put your "webserver user" and your ftp or shell user into the same user group and grant write acccess to that group.

Now, the good news: When you use ez 3.4, you will probably not need to change files by FTP or Shell anymore, as you can edit and create .ini files with the ezPublish admin interface (=the webserver's user).

Marco
http://www.hyperroad-design.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 11:42:29
Script start
Timing: Jan 18 2025 11:42:29
Module start 'layout'
Timing: Jan 18 2025 11:42:29
Module start 'content'
Timing: Jan 18 2025 11:42:30
Module end 'content'
Timing: Jan 18 2025 11:42:30
Script end

Main resources:

Total runtime0.9213 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0184 587.9141152.6250
Module start 'layout' 0.01840.0031 740.539139.4453
Module start 'content' 0.02150.8977 779.9844523.5625
Module end 'content' 0.91910.0021 1,303.54698.1719
Script end 0.9212  1,311.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.4870160.0003
Check MTime0.00160.1690160.0001
Mysql Total
Database connection0.00770.837410.0077
Mysqli_queries0.848492.0883540.0157
Looping result0.00060.0665520.0000
Template Total0.865493.920.4327
Template load0.00280.309120.0014
Template processing0.862693.628120.4313
Template load and register function0.00020.022510.0002
states
state_id_array0.00180.198810.0018
state_identifier_array0.00180.200420.0009
Override
Cache load0.00220.2373190.0001
Sytem overhead
Fetch class attribute can translate value0.00070.077320.0004
Fetch class attribute name0.00150.162030.0005
XML
Image XML parsing0.00070.076420.0004
class_abstraction
Instantiating content class attribute0.00000.001730.0000
General
dbfile0.00250.2764160.0002
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs