[Asterisk-Users] Can I runAsterisk remotely from telnet session?

Steve Lane steve_lane at charter.net
Fri Aug 15 11:01:42 MST 2003


Forgive me as my Linux and UNIX skills have not been utilized in over 6
months due to my job situation. I thank you for the suggestion of the
"-" after the su command. It worked and I am slowly regaining my memory.
Again I am sorry to ask such elementary questions, but the simple info
helps me quite a bit when I leave out simple details.

Highest regards,
Steve Lane
 

-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com] On Behalf Of Adams, Gavin
Sent: Friday, August 15, 2003 12:43 PM
To: asterisk-users at lists.digium.com
Subject: RE: [Asterisk-Users] Can I runAsterisk remotely from telnet
session?

> From: mawali at news.icns.com [mailto:mawali at news.icns.com]
> 
> 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.

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
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list