commands are dissapearing on me!
if i su to root, there are certain commands i cannot run.
lets say i type ifconfig as root, it tells me there is no command not found. Im running red hat 8, and im in a bash prompt, so how can i assosiate the command "ifconfig" to the actual location of the program in /sbin thanks, digsby |
When you change users, specifically when you change users to the superuser (aka root) your $PATH variable gets reset. If you look in /etc/profile****(see below) you should see pretty much exactly what happens. In that same file, if you edit the $PATH that is set for root once you have su'd to have /sbin in it, then logout and backin as root, the change should take effect immediately.
So the entry might look like this: Code:
# For root users, ensure that /usr/local/sbin, /usr/sbin, and /sbin are in HTH Cool ***: /etc/profile is very important in getting the system running, and keeping it running correctly. Be very careful when you edit this file, and always make a backup of a working copy before making changes. |
All times are GMT -5. The time now is 10:12 AM. |