when asterisk is generating files (voicemail messages to name one kind), it will apply read and write permission only to the user as asterisk is running and not the group aswell.
let me clarify:
I run asterisk like so: “asterisk -U asterisk -G apache” so it will run with user-permissions of user ‘asterisk’ and
group-permissions of group ‘apache’
I do this because I want the voicemails to be accesible via a simple web-interface…
Now, everything goes well, but again, on asterisk self-generated files, it doesn’t work, because files written (in my case) will have something like this:
rw- — --- asterisk apache msg_0001.wav
I can’t access this .wav-file because ‘apache’ does not have any permissions to it.
Can anyone help me to proceed?
- I don’t see a asterisk setting where I can modify this so also group is given access
- umask, but how?