Thursday, June 18, 2009

"You have no right to access..."

So far, every sound file that we have uploaded (IVR or moh) has been assigned the user:group of apache:apache. I did some snooping around, and I read something about httpd.conf.

So, I opened up /etc/httpd/conf/httpd.conf and found the following:


# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# . On SCO (ODT 3) use "User nouser" and "Group nogroup".
# . On HPUX you may not be able to use shared memory as nobody, and the
# suggested workaround is to create a user www and use that user.
# NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
# when the value of (unsigned)Group is above 60000;
# don't use Group #-1 on these systems!
#
User apache
Group apache
I changed the

User apache
Group apache

to

User asterisk
Group asterisk

Then I did a reboot on the box. Now, when I uploaded the files they had the correct user:group! Yes! I'm not sure if there will be other consequences of changing the user:group in httpd.conf, but so far it is nice.

DJ@Paris

No comments:

Post a Comment