httpd.conf How to prevent user to view it?

kosmo

Well-Known Member
Verifed Vendor
Aug 12, 2001
400
0
316
All over Europe
Anyone else getting a timeout error when attempting to add addon domains and httpd.conf is set to 600?

kosmo
 

kosmo

Well-Known Member
Verifed Vendor
Aug 12, 2001
400
0
316
All over Europe
I also get this now:
Cpanel::BoxTrapper::BoxTrapper_getaccountinfo('xxx') called at bin/boxtrapper.pl line 34
[an error occurred while processing this directive]Unable to locate home dir for account xxx
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
Kosmo,

Are you going to be able to work around these new restrictions that break some of the fantastico admin features, or is it going to mean a rethink (a WHM module instead, perhaps)?
 

kosmo

Well-Known Member
Verifed Vendor
Aug 12, 2001
400
0
316
All over Europe
I am not sure how we could work around it. The addon domains paths are only stored in httpd.conf. If cpanel will not provide a command (like <cpanel printhomedir("addondomain")>) which will work for all domains of an account (main, sub, addon) then we can determine the path only by guessing :D

kosmo
 

casey

Well-Known Member
Jan 17, 2003
2,288
0
191
kosmo said:
I am not sure how we could work around it. The addon domains paths are only stored in httpd.conf. If cpanel will not provide a command (like <cpanel printhomedir("addondomain")>) which will work for all domains of an account (main, sub, addon) then we can determine the path only by guessing :D

kosmo
They should be able to provide a command like that fairly easily I would think.
But if you were able to make a WHM module it would run as root, so it could access httpd.conf anyway....? Maybe?
 

flash7

Well-Known Member
Feb 16, 2004
201
0
166
casey said:
10.3.0 (build 12) - BETA Tree Mon Jun 27 01:26:29 2005

Change default permissions on httpd.conf to 0600

Yea! Great news!
Please in RELEASE too :)