Is /sbin in your path?

CP

Robert McNaught wrote:
> 
> my problem is that a non-privileged user, eg admin, cannot log in and
> connect to the console by issuing the following
> 
> [EMAIL PROTECTED] asterisk -r
> bash: asterisk: command not found
> 
> [EMAIL PROTECTED] whereis asterisk
> asterisk: /usr/sbin/asterisk /usr/lib/asterisk /usr/include/asterisk
> /usr/include/asterisk.h /usr/share/man/man8/asterisk.8
> 
> what is the best way to solve this problem?
> 
> i have tried adding
> 
> admin   ALL=(ALL)       ALL    - I will prune back once I verify I can
> get this working
> 
> into visudo, but even that returns asterisk:command not found
> 
> Does anyone out there know the best way around this - I tried adding in
> a symbolic link in /usr/bin/asterisk to point to the
> /home/asterisk/asterisk-bin/sbin/asterisk file, which worked, but is a
> hack around the problem and don't believe this is the way
> 
> It seems that non-privileged users cannot run commands in sbin, but can
> in bin directories
> 
> Robert
> 


_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to