FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hy guys, this problem making me realy sick now, I cant use any normal command, when I type in the command it says : command not found, firt it was only thing like ifconfig or ifconfig -a , and I was thinking that maybe is something with the ifconfig, but now I just installed Apache 2.2 everything wass ok ./configure, make, make install everything went good, now I want to start my apache /usr/sbin/apachectl -k start , nothing works or if I do stop , nothing, it just comes up with " command not found"
:
[root@Vigor31 sbin]# clear
[root@Vigor31 sbin]# locate apachectl
/usr/share/man/man8/apachectl.8.gz
/usr/sbin/apachectl
/var/www/manual/programs/apachectl.html.ko.euc-kr
/var/www/manual/programs/apachectl.html
/var/www/manual/programs/apachectl.html.en
[root@Vigor31 sbin]# apachectl -k start
bash: apachectl: command not found
[root@Vigor31 sbin]# ls
accept
Im logged on as root, please help me, this is very strange but some commands like "who" "last" "df" are working, but others not.
I have Fedora core 4.
I'm asking because who, last and df reside in a bin directories (accessible to 'all') and the commands not working reside in sbin directories which are (mostly) only accessible by root.
Some other things you could check:
ls -l /usr/sbin/apachectl => owner, groups and permissions. Are they correct. The same for the sbin directories.
echo $PATH => are the sbin directories present
if you look at my copied text above, " [root@Vigor31 sbin]# locate apachectl
if you look at this, than you will see [root@vigor31 sbin] this means that I'm root at the sbin directory. when I login then u see other name, after the su command and pass, I get root@vigor31 so I'm 100% root.
Distribution: Fedora 18, Puppy Linux, various others
Posts: 107
Rep:
Possibly those commands are not in your path. when you su, is it with the dash; the command su - gives you the complete environmental variables for root. Good luck!
To expand on Kurt's comment,
su <someuser>
without a '-' logs you in as that user, but WITHOUT their env; in fact you retain your orig env.
su - <someuser>
logs you in as that user WITH their env.
HTH
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.