some commands are not available
Ed Greshko
Ed.Greshko at greshko.com
Wed Jun 7 06:49:36 UTC 2006
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 at CristaLe-KwAk sbin]# apachectl restart
> bash: apachectl: command not found
>
>
> [root at 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
More information about the fedora-list
mailing list