reading domain list

Lem0nHead

Verified User
Joined
Nov 28, 2004
Messages
265
hello

is there an easy way to make /usr/local/directadmin/data/users/domains.list public readable?

since httpd.conf is chmoded 644, domains.list doesn't have any secret information (that can't be read on httpd.conf)...
but it would make a script i'm doing easier :)

any suggestions?
maybe adding the chmod 644 on scripts/custom/user_create_post.sh ?

thanks
 
Since there isn't any file named:

/usr/local/directadmin/data/users/domains.list

may I presum you mean:

/usr/local/directadmin/data/users/<username>/domains.list

If so, then yes, there is a bit of information to be gleaned from making the files world readable, and that is the owner of the domain.

I think your idea would work, but much more secure would be to change the file's group ownership to a group you create for the purpose, then make the owner of your script a member of that group, and finally make the file group readable.

Jeff
 
jlasman said:
Since there isn't any file named:

/usr/local/directadmin/data/users/domains.list

may I presum you mean:

/usr/local/directadmin/data/users/<username>/domains.list

If so, then yes, there is a bit of information to be gleaned from making the files world readable, and that is the owner of the domain.

I think your idea would work, but much more secure would be to change the file's group ownership to a group you create for the purpose, then make the owner of your script a member of that group, and finally make the file group readable.

Jeff

I tried that, but it seens it doesn't work
probably the user_create_post.sh is created before the domains.list ?
(maybe I'd need to put the commands on domain_create_post.sh ?
 
Back
Top