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

Steven Critchfield critch at basesys.com
Fri Aug 15 17:46:34 MST 2003


On Fri, 2003-08-15 at 12:42, Adams, Gavin wrote:
> > 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.

"sudo su -" is kind of a stange thing to do. You would probably be
better of doing "sudo bash" as it also will give you a bash prompt with
root login.  
-- 
Steven Critchfield <critch at basesys.com>




More information about the asterisk-users mailing list