Does anyone have a listing on file/directories that asterisk needs ownership of to run as a user other than root? I know about the major items --- /etc/asterisk, /var/spool/asterisk/, /var/lib/asterisk, etc... Anyone have a script to fix all the directories? Thanks in advance. FB
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Forrest Beck wrote:> Does anyone have a listing on file/directories that asterisk needs > ownership of to run as a user other than root? > > I know about the major items --- /etc/asterisk, /var/spool/asterisk/, > /var/lib/asterisk, etc... Anyone have a script to fix all the > directories?vi /etc/asterisk/asterisk.conf maybe? - -- Cheers, Matt Riddell _______________________________________________ http://www.sineapps.com/news.php (Daily Asterisk News - html) http://freevoip.gedameurope.com (Free Asterisk Voip Community) http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE4Z4fS6d5vy0jeVcRAt8VAJ9nOO2tYL3nGavDzs8GJHuyKxIn9gCeMx3V BoTXDsieNyGL7p3nmEuoHBU=ci5J -----END PGP SIGNATURE-----
On Mon, Aug 14, 2006 at 09:44:39PM -0400, Forrest Beck wrote:> Does anyone have a listing on file/directories that asterisk needs > ownership of to run as a user other than root? > > I know about the major items --- /etc/asterisk, /var/spool/asterisk/, > /var/lib/asterisk, etc... Anyone have a script to fix all the > directories?/etc/asterisk needs to be readable to asterisk. Except voicemail.conf (or if you wish to allow asterisk to re-write extensions.conf). As it has various files with passwords, it is generally a good idea to make it non-accessible to "others". Generally /var/*/asterisk (/var/log/asterisk , /var/lib/asterisk , /var/run/asterisk) should be of the asterisk user. You can use some finer tuning. -- Tzafrir Cohen sip:tzafrir@local.xorcom.com icq#16849755 iax:tzafrir@local.xorcom.com +972-50-7952406 jabber:tzafrir@jabber.org tzafrir.cohen@xorcom.com http://www.xorcom.com
There is a good page on the wiki about this: http://www.voip-info.org/wiki-Asterisk+non-root CP On Aug 14, 2006, at 6:44 PM, Forrest Beck wrote:> Does anyone have a listing on file/directories that asterisk needs > ownership of to run as a user other than root? > > I know about the major items --- /etc/asterisk, /var/spool/asterisk/, > /var/lib/asterisk, etc...? Anyone have a script to fix all the > directories? > > Thanks in advance. > > FB > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > ?? http://lists.digium.com/mailman/listinfo/asterisk-users