I'm currently running all my user's domains with the following in their VirtualHost config in httpd.conf:
php_admin_value open_basedir &/home/username:/tmp&
so that they cannot peruse through other user's files with a php script. I don't want to have to add these by hand all the time, so I was looking at wwwacct which creates the file, and where it writes to httpd.conf (around like 643) and was wondering what happens if I edit the file to make the httpd.conf changes automatically add the aforementioned line to all newly created accounts. I realize there are two places to change, for named based and ip based accounts. Just wondering if wwwacct will get overwritten soon or if I can 'chattr +i' it so that it can't be changed, and if in fact wwwacct is updated I can just update it manually and then replace my changes. Or possibly get it set as an option to the script for everyone to use?
Mainly wondering how often wwwacct gets updated and if I'd be safe editing it to fit this particular need.
edit: I've noticed that this is only for creating accounts, the subdomain setup uses a different script all together, although I couldn't figure out where the code for it was, was hoping someone could point me to where the script for creating subdomains is so I can modify that appropriately.
php_admin_value open_basedir &/home/username:/tmp&
so that they cannot peruse through other user's files with a php script. I don't want to have to add these by hand all the time, so I was looking at wwwacct which creates the file, and where it writes to httpd.conf (around like 643) and was wondering what happens if I edit the file to make the httpd.conf changes automatically add the aforementioned line to all newly created accounts. I realize there are two places to change, for named based and ip based accounts. Just wondering if wwwacct will get overwritten soon or if I can 'chattr +i' it so that it can't be changed, and if in fact wwwacct is updated I can just update it manually and then replace my changes. Or possibly get it set as an option to the script for everyone to use?
Mainly wondering how often wwwacct gets updated and if I'd be safe editing it to fit this particular need.
edit: I've noticed that this is only for creating accounts, the subdomain setup uses a different script all together, although I couldn't figure out where the code for it was, was hoping someone could point me to where the script for creating subdomains is so I can modify that appropriately.