Voxilla VoIP Forum

Go Back   Voxilla VoIP Forum > Hardware/Software Support Forums > Asterisk Support Forum

Asterisk Support Forum Technical support, how-to guides, troubleshooting, and general assistance, from beginner to seasoned pro, this is where to discuss Asterisk, the most powerful open source PBX.


Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old July 18th, 2007, 10:54 AM
Junior Member
 
Join Date: Nov 2004
Posts: 5
joregelt
Default running asterisk 1.4.x as non-root user??

hi

i have just upgraded a headless ClarkConnect 3.0 server, to ClarkConnect 4.1, and therefore also reinstalled asterisk. My old asterisk was 1.0.? and the new one is 1.4.x.
When i set up my previous install 2 years ago i followed these instructions at www.voip-info.org/wiki/i...sterisk+non-root to run asterisk as non-root and used the standard redhat startup script that can be found in /asterisk source/contrib/init.d to get it started at boot.
I have tried to do the same for asterisk 1.4, but it doesn't work.
Troubleshooting by doing a

sudo -u asterisk "script that starts asterisk" resulted in an error

touch: cannot touch `/var/lock/subsys/asterisk': Permission denied]

i changed ownership of this file from root to asterisk. Thereafter i am stumped.
If I try the above sudo command now asterisk runs in "safe_asterisk" mode.
As root I can run asterisk normally and after having copied my old conf files over, most things seem to work straight away.

Any suggestions on why the script fails as non root.
Following are some log files.

boot.log
Jul 17 21:53:31 cc1 safe_asterisk: Asterisk ended with exit status 1
Jul 17 21:53:31 cc1 safe_asterisk: Asterisk died with code 1.
Jul 17 21:53:31 cc1 safe_asterisk: Automatically restarting Asterisk.
Jul 17 21:53:31 cc1 safe_asterisk: Ops. I'm not root. Falling back to standard prio and file max.
Jul 17 21:53:31 cc1 safe_asterisk: This is NOT suitable for large systems.
Jul 17 21:53:31 cc1 safe_asterisk: /usr/sbin/safe_asterisk: line 122: /dev/tty9: Permission denied
Jul 17 21:53:31 cc1 safe_asterisk: /usr/sbin/safe_asterisk: line 123: /dev/tty9: Permission denied
Jul 17 21:53:31 cc1 safe_asterisk: cat: /var/run/asterisk.pid: No such file or directory
Jul 17 21:53:31 cc1 asterisk: safe_asterisk startup succeeded

thanks

jo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old August 7th, 2008, 12:14 PM
Junior Member
 
Join Date: Oct 2007
Posts: 1
shaunw is on a distinguished road
Default Re: running asterisk 1.4.x as non-root user??

Hi, I have the same problem. Did you get a solution?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
SPA400 root password for Telnet Access phatboyslim Linksys SPA9000/SPA400 Support Forum 4 October 28th, 2006 02:31 PM
log into asterisk CLI as normal user baddah Asterisk Support Forum 5 July 7th, 2006 07:26 PM
asterisk@home running on the router? acarrot Asterisk Support Forum 3 May 10th, 2006 03:10 PM
Running FOP and Asterisk Stat on Asterisk Box? habit Asterisk Support Forum 0 October 21st, 2005 12:19 AM
Problem running Samba on the Asterisk@home server blapoint Asterisk Support Forum 3 August 26th, 2005 03:06 PM



All times are GMT. The time now is 08:04 AM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Logos and trademarks are the property of Voxilla or their respective owner. All other content © 2003-2009 by Voxilla, Inc.