File permissions for some log files

Author Message

Mauro Innocenti

Friday 25 March 2005 6:47:16 am

I'm in a linux box.

I configured eZ with file permissions on files and directories as 600 or 700, with these site.ini settings:
[FileSettings]
TemporaryPermissions=0700
StorageDirPermissions=0700
StorageFilePermissions=0600

All work fine for cache and storage dir&files.
But the log files (written in "var/log/...") are created invariably with 660 or 666 permissions!

Which setting I'm missing?

Thanks

Ɓukasz Serwatka

Monday 28 March 2005 9:11:32 pm

Hi Mauro,

It's preferred to use 0660 and make sure the web server has correct user/group access.

StorageFilePermissions=0660

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Mauro Innocenti

Monday 28 March 2005 11:30:59 pm

Thanks Lukasz,
but the user/group of my webserver have correct access to the var folder.
All files in "var" are created and accessed with no problem, but the permission used by Ez for the log files are different from the settings I writteng in site.ini.
Some log files are created (and updated) writable and readable to everyone (666), I don't want this!

It seem's log files permissions don't respect my settings in site.ini..

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 20 2025 03:10:59
Script start
Timing: Jan 20 2025 03:10:59
Module start 'layout'
Timing: Jan 20 2025 03:10:59
Module start 'content'
Timing: Jan 20 2025 03:10:59
Module end 'content'
Timing: Jan 20 2025 03:10:59
Script end

Main resources:

Total runtime0.0144 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 589.2813152.6406
Module start 'layout' 0.00540.0027 741.921939.4766
Module start 'content' 0.00810.0045 781.398489.4922
Module end 'content' 0.01260.0018 870.890634.3047
Script end 0.0144  905.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002316.1299140.0002
Check MTime0.00117.6211140.0001
Mysql Total
Database connection0.00095.928310.0009
Mysqli_queries0.002618.224530.0009
Looping result0.00000.076010.0000
Template Total0.001410.010.0014
Template load0.00085.609210.0008
Template processing0.00064.332910.0006
Override
Cache load0.00063.904810.0006
General
dbfile0.00032.021880.0000
String conversion0.00000.049640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs