Steve Lane
2003-Aug-15 10:21 UTC
[Asterisk-Users] Can I runAsterisk remotely from telnet session?
I am having problems trying to run asterisk from a telnet session. I am able to su to root and the command asterisk does not work. Any ideas why this may be occurring? I thought Asterisk could be configured remotely as well as run remotely? Thanks in advance. Steve Lane -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20030815/a6482118/attachment.htm
Adams, Gavin
2003-Aug-15 10:42 UTC
[Asterisk-Users] Can I runAsterisk remotely from telnet session?
> From: mawali@news.icns.com [mailto:mawali@news.icns.com] > > Please explain, what do you mean by "does not work". It looks like apath> problem. Instead of using "su" use "su -". > > "su" does not initialize the environment for the user you are "su"ingas,> but "su -" will. /sbin and /usr/sbin a special path's that are only in > root's environment.Another thing I'm doing while soak testing an application (pre /etc/init.d startup script) is to run 'screen' as an unpriviledged user, then 'su -' to root (or even better, 'sudo su -') followed by starting the application. At that point CTRL-A CTRL-D will disconnect the session. Later, a quick 'screen -r' gets you back to that console. But agreed, a *NIX 101 book would be beneficial. HTH too, --- Gavin
Andy Powell
2003-Aug-15 11:17 UTC
[Asterisk-Users] Can I runAsterisk remotely from telnet session?
Personally I'd use ssh rather than telnet Andy *********** REPLY SEPARATOR *********** On 15/08/2003 at 12:21 Steve Lane wrote:>I am having problems trying to run asterisk from a telnet session. I am >able to su to root and the command asterisk does not work. Any ideas why >this may be occurring? I thought Asterisk could be configured remotely >as well as run remotely? > Thanks in advance. > >Steve Lane > > >_______________________________________________ >Asterisk-Users mailing list >Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users
mawali@news.icns.com
2003-Aug-15 12:21 UTC
[Asterisk-Users] Can I runAsterisk remotely from telnet session?
Please explain, what do you mean by "does not work". It looks like a path problem. Instead of using "su" use "su -". "su" does not initialize the environment for the user you are "su"ing as, but "su -" will. /sbin and /usr/sbin a special path's that are only in root's environment. Hope this help, I will recommend reading a book on UNIX, this is UNIX 101 stuff. On Fri, 15 Aug 2003, Steve Lane wrote:> I am having problems trying to run asterisk from a telnet session. I am > able to su to root and the command asterisk does not work. Any ideas why > this may be occurring? I thought Asterisk could be configured remotely > as well as run remotely? > Thanks in advance. > > Steve Lane > >