View Full Version : Can't call system command

6th May 2006, 02:44 AM
Hi friends,
I use FC4. When I login with user without "root", I have a problem. When I type commands, example "fdisk", "ifconfig", "service" ...., the system return a boring message "command not found". If I switch to "root", error still exists. If I login with root, It 's OK. I think when I login with users without root, the path to the command is not available but I don't know where these command are. Pls help me

6th May 2006, 03:04 AM
When you switch to root, you are only doing an su. Try an su - (with a dash).

The dash loads the profile for root and that also gives you root's path. Once you have root path, you can type commands like ifconfig and the system will find it.

6th May 2006, 03:30 AM
Great :)
Thanks you very much