Permission problems with ftp

Author Message

Knut Arne Langseth

Friday 19 May 2006 5:59:19 am

Hi

I realize this is as much a Linux/Unix problem as it is Ez, but I'm quite positive that someome must have encountered this problem, and I hope there is a workaround.

Running Ez on Debian 3.1/Linux, the apache server run as user nobody:nogroup.
The website itself has a user : myuser:mygroup

When we try to upload template files, or ini files using FTP, we get permission denied. As far as I can find out this is because the owner of these files is the apache user "nouser".
And that the ftp server denies this user to upload files. So even having "myuser" be member of "nogroup" does not help. I'm not 100% sure this is why, but its my best guess. Since all files and directories in design and settings have permissions rwxrwxrwx. (or 777).

Now I could do chown myuser:mygroup on these files and directories, and then do chmod 777. But in tests the files change permission if the admin user interface inside EZ publish is used just once.

I want to solve this problem and forget about it, preferably :)

Does anyone have a solution/workaround for this ?

Best regards
Knut

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 19 2025 01:03:38
Script start
Timing: Jan 19 2025 01:03:38
Module start 'layout'
Timing: Jan 19 2025 01:03:38
Module start 'content'
Timing: Jan 19 2025 01:03:39
Module end 'content'
Timing: Jan 19 2025 01:03:39
Script end

Main resources:

Total runtime0.6226 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.2734152.6406
Module start 'layout' 0.00630.0041 741.914139.4766
Module start 'content' 0.01030.6108 781.3906403.7109
Module end 'content' 0.62110.0015 1,185.10168.1484
Script end 0.6226  1,193.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.5597160.0002
Check MTime0.00150.2455160.0001
Mysql Total
Database connection0.00120.193110.0012
Mysqli_queries0.581993.4647460.0127
Looping result0.00040.0594440.0000
Template Total0.590194.820.2950
Template load0.00180.294720.0009
Template processing0.588294.480720.2941
Template load and register function0.00020.029710.0002
states
state_id_array0.00150.245110.0015
state_identifier_array0.00110.180520.0006
Override
Cache load0.00150.2377140.0001
Sytem overhead
Fetch class attribute can translate value0.00040.071210.0004
Fetch class attribute name0.00100.163210.0010
XML
Image XML parsing0.00010.017210.0001
class_abstraction
Instantiating content class attribute0.00000.000810.0000
General
dbfile0.00160.2533100.0002
String conversion0.00000.002040.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 5

Time used to render debug report: 0.0001 secs