Hi everybody, Is the only way to use asterisk _not_ as root to change the permission of all the directories where asterisk need to create a file? ("/var/run/", "/var/log/asterisk/messages") any help will be appreciated, Cyprien
I modified the permissions of "/var/spool/asterisk" and "/var/log/asterisk" and it seems that asterisk is launching now. But I still have messages at the beginning telling me that: Unable to open pid file '/var/run/asterisk.pid': Permission denied Unable to bind socket to /var/run/asterisk.ctl: Address already in use Any ideas if it's bad, or if I can just forgot about it? Cyprien On Monday 12 July 2004 13:18, Cyprien Simons wrote:> Hi everybody, > > Is the only way to use asterisk _not_ as root to change the permission of > all the directories where asterisk need to create a file? ("/var/run/", > "/var/log/asterisk/messages") > > any help will be appreciated, > > Cyprien > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Cyprien Simons wrote:> Is the only way to use asterisk _not_ as root to change the permission of all > the directories where asterisk need to create a file? ("/var/run/", > "/var/log/asterisk/messages")http://voip-info.org/wiki-Asterisk+non-root F
cyprien.simons@tu-berlin.de (Cyprien Simons) writes:> Is the only way to use asterisk _not_ as root to change the > permission of all the directories where asterisk need to create a > file? ("/var/run/", "/var/log/asterisk/messages") > > any help will be appreciated,Grab my patches below. It does both chroot and setuid to user "asterisk". (You might need to back out one or two of the obvious Openbsd fixes.) I've been running chroot and as user "asterisk" for a few weeks now on this sip-only server. There are still few loose ends (like "music on hold" not running correctly, but part of that appears to be an asterisk scheduler problem under OpenBSD that happens even with no chroot etc.) -wolfgang -- Wolfgang S. Rupprecht http://www.wsrcc.com/wolfgang/ openbsd amd64 http://www.wsrcc.com/wolfgang/ftp/asterisk-openbsd35.patch