<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.14.3">
</HEAD>
<BODY>
not in path<BR>
<BR>
[admin@XXXXXX]$ echo $PATH<BR>
/usr/kerberos/bin:/usr/lib/courier-imap/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/admin/bin<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Is /sbin in your path?</FONT>
<FONT COLOR="#000000">CP</FONT>
<FONT COLOR="#000000">Robert McNaught wrote:</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> my problem is that a non-privileged user, eg admin, cannot log in and</FONT>
<FONT COLOR="#000000">> connect to the console by issuing the following</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> [admin@XXXX]$ asterisk -r</FONT>
<FONT COLOR="#000000">> bash: asterisk: command not found</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> [admin@XXXXX]$ whereis asterisk</FONT>
<FONT COLOR="#000000">> asterisk: /usr/sbin/asterisk /usr/lib/asterisk /usr/include/asterisk</FONT>
<FONT COLOR="#000000">> /usr/include/asterisk.h /usr/share/man/man8/asterisk.8</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> what is the best way to solve this problem?</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> i have tried adding</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> admin ALL=(ALL) ALL - I will prune back once I verify I can</FONT>
<FONT COLOR="#000000">> get this working</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> into visudo, but even that returns asterisk:command not found</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> Does anyone out there know the best way around this - I tried adding in</FONT>
<FONT COLOR="#000000">> a symbolic link in /usr/bin/asterisk to point to the</FONT>
<FONT COLOR="#000000">> /home/asterisk/asterisk-bin/sbin/asterisk file, which worked, but is a</FONT>
<FONT COLOR="#000000">> hack around the problem and don't believe this is the way</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> It seems that non-privileged users cannot run commands in sbin, but can</FONT>
<FONT COLOR="#000000">> in bin directories</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> Robert</FONT>
<FONT COLOR="#000000">> </FONT>
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>