Wrong device permision
    Michal Gust 
    m.gust at sh.cvut.cz
       
    Tue Dec 20 19:46:15 UTC 2005
    
    
  
Package: zaptel-source
Version: 1:1.2.1-1
Dear team,
Asterisk init script starts Asterisk under asterisk user. Devices under 
/dev/zap are created with 644 permission under user who compile the 
source code - usually root. Therefore Asterisk started with default init 
script doesn't have permission to access to it. I think the right way to 
resolve problem is to change Makefile in zaptel-source package to set 
appropriate permission when installing modules ("makefile install" 
command). Example of possible patch follows.
315a316,319
 >        chown asterisk.asterisk $(INSTALL_PREFIX)/dev/zap/ctl
 >        chown asterisk.asterisk $(INSTALL_PREFIX)/dev/zap/timer
 >        chown asterisk.asterisk $(INSTALL_PREFIX)/dev/zap/channel
 >        chown asterisk.asterisk $(INSTALL_PREFIX)/dev/zap/pseudo
319a324
 >               chown asterisk.asterisk $(INSTALL_PREFIX)/dev/zap/$$N; \
Regards
M.Gust
    
    
More information about the Pkg-voip-maintainers
mailing list