Bug 51844
Summary: | command not found .more help | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Need Real Name <tracylhy> |
Component: | bash | Assignee: | Bernhard Rosenkraenzer <bero> |
Status: | CLOSED NOTABUG | QA Contact: | Aaron Brown <abrown> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.2 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2001-08-15 19:38:49 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Need Real Name
2001-08-15 19:22:35 UTC
Could you help me? this is a bug or we did not config our system correctly? *** Bug 51839 has been marked as a duplicate of this bug. *** Chances are you're just typing in wrong commands. chkconfig, useradd etc. live in /sbin and /usr/sbin, therefore they are not in the search path of normal users. If you want to call them up without the environment variables usually set for root, give the full location ("/sbin/chkconfig whatever"). If you are actually running as root, the most likely cause is that you removed /sbin and /usr/sbin from your PATH manually (e.g. by removing .bash_profile). Yes, you are right. THANKS A LOT!!!!!!! When I type "/usr/sbin/useradd aa', the command works. I can not find the .bash_profile of root user. DO you mean I should add the .bash_profile to root. what is the content of the .bash_profile? I have a .bash_profile of our oracle user. The path parameter is "PATH=$PATH:$HOME/bin". why after I reboot my computer,I type useradd without path,and the command works.? Yes, I found there is a file:/root/.bash_profile. The path parameter is "PATH=$PATH:$HOME/bin". I type "echo $HOME" The HOME parameter is /root. So now what change should I make in order to run useradd in any environment when I login as root? Thanks in advance. I am waiting for your answer. Do you think I should change .bash_profile under /root? How can I set the PATH in order to run chkconfig or useradd in any directory as user root? Thanks. ARE YOU OFF NOW? |