[asterisk-users] changing inbuilt sound messages

MFH asterisk-admin at hulber.com
Fri Jul 11 05:23:10 CDT 2008


I was curious so I took a look at my sounds directory.  Most of the 
files are 644 except the g729 which are 444.  I also noticed that the 
ownerid/groupid are a non-existent 1000/1000.  I take it that the sound 
installer uses something like "tar" with the option to keep the original 
owner and groupid which it shouldn't be doing.  If it's tar it should 
use at least the option "-o" when doing the extraction to 
/var/lib/asterisk/sounds.

-rw-r--r--  1 1000 1000    6985 Dec  5  2007 zip-code.alaw
-rw-r--r--  1 1000 1000    6985 Dec  5  2007 zip-code.g722
-r--r--r--  1 1000 1000     870 Dec  5  2007 zip-code.g729
-rw-r--r--  1 1000 1000    1452 Dec  5  2007 zip-code.gsm
-rw-r--r--  1 1000 1000    6985 Dec  5  2007 zip-code.ulaw
-rw-r--r--  1 1000 1000   14014 Dec  5  2007 zip-code.wav

from asterisk/sounds/Makefile:

Makefile:       @PACKAGE=$(subst 
$(SOUNDS_DIR)/.asterisk,asterisk,$@).tar.gz; \
Makefile:       (cd $(SOUNDS_DIR); cat $(PWD)/$${PACKAGE} | gzip -d | 
tar xf -) && \
Makefile:       @PACKAGE=$(subst 
$(SOUNDS_DIR)/.asterisk,asterisk,$@).tar.gz; \
Makefile:       (cd $(SOUNDS_DIR)/es; cat $(PWD)/$${PACKAGE} | gzip -d | 
tar xf -) && \
Makefile:       @PACKAGE=$(subst 
$(SOUNDS_DIR)/.asterisk,asterisk,$@).tar.gz; \
Makefile:       (cd $(SOUNDS_DIR)/fr; cat $(PWD)/$${PACKAGE} | gzip -d | 
tar xf -) && \
Makefile:       @PACKAGE=$(subst 
$(SOUNDS_DIR)/.asterisk,asterisk,$@).tar.gz; \
Makefile:       (cd $(SOUNDS_DIR); cat $(PWD)/$${PACKAGE} | gzip -d | 
tar xf -) && \
Makefile:       @PACKAGE=$(subst 
$(SOUNDS_DIR)/.asterisk,asterisk,$@).tar.gz; \
Makefile:       (cd $(SOUNDS_DIR)/es; cat $(PWD)/$${PACKAGE} | gzip -d | 
tar xf -) && \
Makefile:       @PACKAGE=$(subst 
$(SOUNDS_DIR)/.asterisk,asterisk,$@).tar.gz; \
Makefile:       (cd $(SOUNDS_DIR)/fr; cat $(PWD)/$${PACKAGE} | gzip -d | 
tar xf -) && \
Makefile:       @PACKAGE=$(subst $(MOH_DIR)/.asterisk,asterisk,$@).tar.gz; \
Makefile:       (cd $(MOH_DIR); cat $(PWD)/$${PACKAGE} | gzip -d | tar 
xf -) && \

Tzafrir Cohen wrote:
> On Fri, Jul 11, 2008 at 09:56:29AM +1200, Lists wrote:
>   
>> I only did the 420 because thats what the original files looked like?
>> r-- -w- ---
>> Should I change this to 644?
>>     
>
> Yes!
>
>   



More information about the asterisk-users mailing list