Re: some commands are not available

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

 



GiL A. Virtucio wrote:
> hi,
> 
> im a newbie redhat linux user. i just want to ask if theres a way to be
> able to make the binaries in /usr/sbin/ directly accessible when I
> execute them in a SSH session.
> 
> here's what happens when i try to execute those commands:
> 
> [root@CristaLe-KwAk sbin]# apachectl restart
> bash: apachectl: command not found
> 
> 
> [root@CristaLe-KwAk sbin]# /usr/sbin/apachectl start
> httpd not running, trying to start

It seems when you became root you did "su".  Instead of that do "su -".
 You will then get the $PATH variable set for root with /usr/sbin included.

Ed


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux