[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: which - not working while user



Johann Spies <jhspies@futurenet.co.za> writes:

> My daughter cannot get her exim to send mail.
> 
> When I asked her to type exim -d4 <messageid> as user, she got 
> 
> bash: exim: command not found
> 
> I then asked her to type 
> 
> which exim
> 
> and she reported that nothing happens.
> When she logs in as root it works:
> /usr/sbin/exim
> 
> When she works as normal user, nothing in the /usr/sbin directory shows up
> when she uses which. Her permissions are like this:
> 
> drwxr-xr-x 2 root root 5120 Apr 5 12:39 sbin/
> 
> On my system I do not experience the same problem.  
> We both have hamm installed.

     I believe `which' checks for executables in your path. /sbin and
/usr/sbin are usually not included in a normal user's path, but are in
root's path.

HTH

Bob
-- 
   _
  |_)  _  |_       Robert D. Hilliard    <hilliard@flinet.com>
  |_) (_) |_)      Palm City, FL  USA    PGP Key ID: A8E40EB9


Reply to: