roothahn Posted September 7, 2010 Posted September 7, 2010 Hey fellows ;-) I need to change the behavior of setting permissions after adding domains/subdomains. Usually froxlor will do "chown -R guid:guid directory". But in my case I need to have: chown -R guid:www-data directory or chgrp -R www-data directory I looked into: cron_tasks.inc.http.10.apache.php, but doesn't seem to be the right file. grepping for "chown" gives incredible results ;-) where do I have to set the group and permissions for new files/folders in /var/customers/webs/ ? to be clear: i want: drwxr-x--- 10 10000 www-data 4.0K 2010-09-07 16:10 domain.com note: i just use apache2-mpm-prefork, not fcgid and not suexec Thank you so much :-)
d00p Posted September 8, 2010 Posted September 8, 2010 Try grep'ing for mkDirWithCorrectOwnership()-function calls
roothahn Posted September 8, 2010 Author Posted September 8, 2010 Try grep'ing for mkDirWithCorrectOwnership()-function calls perfect, I thank you! cron_tasks.inc.http.10.apache.php, line 722 mkDirWithCorrectOwnership($domain['customerroot'], $domain['documentroot'], $domain['guid'], "33", true, true); 33 = guid of www-data
Question
roothahn
Hey fellows ;-)
I need to change the behavior of setting permissions after adding domains/subdomains.
Usually froxlor will do "chown -R guid:guid directory". But in my case I need to have:
chown -R guid:www-data directory
or
chgrp -R www-data directory
I looked into: cron_tasks.inc.http.10.apache.php, but doesn't seem to be the right file.
grepping for "chown" gives incredible results ;-)
where do I have to set the group and permissions for new files/folders in /var/customers/webs/ ?
to be clear: i want:
drwxr-x--- 10 10000 www-data 4.0K 2010-09-07 16:10 domain.com
note: i just use apache2-mpm-prefork, not fcgid and not suexec
Thank you so much :-)
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.