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

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux