[Asterisk-Dev] Enabling consistent file permissions ?

Dave Hawkes daveh at cadlink.com
Tue Oct 4 08:56:39 MST 2005


Hi All...

I've been experimenting with AMP and Asterisk and discovered that the reason it requires Apache to run as the same user 
group as Asterisk. Different users/groups for Apache and Asterisk is difficult because * is not very consistent in its 
file creation modes. Typically either 0600 or 0700 is used for file creation/copying which makes having common group 
membership with other applications rather useless.

My though is that * should have the option to set its umask (configurable) on startup and then rely on that to maintain 
security and use 0666/0777 for all file modes. Alternatively if there is concern that the umask could be inadvertently 
changed (AGI maybe) then we should be able configure the file permission modes and the use that configuration consistently.

I'd be prepared to submit some changes along these lines if they were likely to be accepted. Any thoughts?

Dave Hawkes






More information about the asterisk-dev mailing list