www-mirrors mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sascha E. Pollok" <mirror-apa...@iphh.net>
Subject Re: /incubator/syncope/ Permission denied
Date Mon, 30 Jul 2012 22:42:57 GMT
>> Of cource there is, but it would just be a quick and dirty bugfix not
>> getting rid of the original problem. And it would put very heavy loads
>> on cpu and filesystem on the archive-master. There are many ways to do
>> that, one of them would be running this little script regularely in cron:
>>   chown [apache-user]:[apache-group] [/path/to/apache/root/] -R
>>   find [/path/to/apache/root/] -type d -exec chmod 755 {} \;
>>   find [/path/to/apache/root/] -type f -exec chmod 644 {} \;
>> But as I stated before running that script through cron in regular
>> intervals would put cpu and fs under quite a lot of stress, depending on
>> the underlying hardware and the average load the server has now so it
>> could only be a short term solution to automate fixing wrong modes
>> and/or ownerships.
> As a quick&dirty fix this would do it.
> As for the load, 'ionice' would help avoiding server load.

Yes and maybe matching the find against rights using -perm or -uid so we 
do not execute chmod for every file/directory that is set correctly.


View raw message