LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot run commands after su (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-run-commands-after-su-44328/)

bugsbunny 02-06-2003 10:46 AM

Cannot run commands after su
 
Hello,
I noticed that when i log in as myself and su to root I am unable to execute commands like depmod, rmmod, lsmod, and modprobe.

the only way is to reboot and log in as root. What is wrong and how can I fix this.

Also when i restart my boot into linux i get this get this error during the startup routines

Determining the IP information for eth0 failed.

How can i fix it ?

Thanx

jason 02-06-2003 10:54 AM

The commands that you refer to are stored in /sbin. So, to execute them, you will have to do one of two things:

1) Refer to the command with the path explicitly (i.e. #/sbin/lsmod will execute lsmod)
2) Instead of just typing "su", try "su -". It will load root's environment variables, including the path. Then, when you type "lsmod", it will look in root's PATH for the command.

As for eth0, it's letting you know that something is wrong with your network connection. Make sure your network cable is plugged into your network card. If this doesn't fix the problem, post again with more symptoms.

bugsbunny 02-06-2003 11:25 AM

Thanx

About the eth0 problem, the thing is its a stad alone pc i'm not connected to any net apart from using the internet so can i just diasble it or something ?

Texicle 02-06-2003 06:56 PM

What type of internet connection do you have? DSL, Cable, Dial Up?

bugsbunny 02-07-2003 08:42 AM

Hello,
I have a dial-up connection.

Thanxs

Netrack 02-07-2003 11:25 AM

do you have a network card in your box, or one built on the mobo


All times are GMT -5. The time now is 01:28 PM.