Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dumb modprobe question

Status
Not open for further replies.

jisoo23

Programmer
Jan 27, 2004
192
US
Hello all,

This might be a really dumb question, but how do I get modprobe to work? I'm trying to load up a couple modules to test but I keep getting "bash: modprobe: command not found". Is there something I'm missing?

Thanks,
Jisoo23
 
'modprobe' is probably in /sbin, and as a regular user on Fedora the /sbin paths (/usr/sbin, /sbin, /usr/local/sbin, etc) aren't in your $PATH.

When you 'su', do an 'su -' so bash will source root's settings and you won't have a problem.

If that fails, make sure you have 'modutils' package installed.

----
JBR
 
Thanks I'll try that out. If it works, is there a way to set the /sbin paths permanently?

Jisoo23
 
No... well, yes, but it's not a good idea. sbin is the directory for super user programs like adduser and the like... regular users should NOT be able to these... Even if you are the only one using the machine I would recomend not making the path load. So su only when you need to and use the '-' switch only when have to.

But in case my warning don't phase you, as root (under su) you can give permissions to sbin and it's contents to another user and add that to the path in your shells (bash it apears) start script.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top