LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-06-2003, 10:46 AM   #1
bugsbunny
Member
 
Registered: Jan 2003
Location: London/UK
Distribution: Slackware 9.1
Posts: 111

Rep: Reputation: 15
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
 
Old 02-06-2003, 10:54 AM   #2
jason
LQ Newbie
 
Registered: Jun 2002
Location: Baltimore, MD
Distribution: Red Hat 7.2
Posts: 10

Rep: Reputation: 0
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.
 
Old 02-06-2003, 11:25 AM   #3
bugsbunny
Member
 
Registered: Jan 2003
Location: London/UK
Distribution: Slackware 9.1
Posts: 111

Original Poster
Rep: Reputation: 15
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 ?
 
Old 02-06-2003, 06:56 PM   #4
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
What type of internet connection do you have? DSL, Cable, Dial Up?
 
Old 02-07-2003, 08:42 AM   #5
bugsbunny
Member
 
Registered: Jan 2003
Location: London/UK
Distribution: Slackware 9.1
Posts: 111

Original Poster
Rep: Reputation: 15
Hello,
I have a dial-up connection.

Thanxs
 
Old 02-07-2003, 11:25 AM   #6
Netrack
Member
 
Registered: Dec 2002
Posts: 57

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Run commands on each boot linux-rulz Ubuntu 8 12-27-2011 04:28 PM
no commands run astroboiii Linux - General 2 01-08-2005 07:40 PM
run 2 commands in a script ddpicard Linux - General 10 06-13-2003 04:50 PM
My Mandrake can not run the following commands. futurist Linux - General 2 03-23-2003 09:12 AM
Scripts won't run commands Xyphoid Linux - General 4 08-08-2002 08:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration