You are not logged in.

#1 2012-03-25 16:31:08

Starfall
Member
From: /home/
Registered: 2011-05-24
Posts: 209
Website

[SOLVED] Broken PATH variable

Hello smile

No idea what the hell has changed in my system to break this... but I think it's a PATH issue.

Basically, whenever I try and issue modprobe I get 'command not found' the same result from lspci and rc.d

I exported /usr/sbin locally in my user's .bashrc which fixed the lspci issue, however I'm still unable to run modprobe, even as root? :S

Like I said, I haven't been messing around with PATH variables at all, so I have no idea what caused this.

If someone could just possibly advise how I can get my bash back to the 'standard' configuration on a global scope I'd really appreciate it!

I just want it to be how it was when I first installed Arch, no custom exports or anything....

Many thanks in advance, any help is greatly appreciated!

Last edited by Starfall (2012-03-25 17:54:44)


Visit my blog and my DeviatArt page

Offline

#2 2012-03-25 16:51:19

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: [SOLVED] Broken PATH variable

What exactly is your $PATH set to at the moment? What does your /etc/profile look like? Any forgotten changes to /etc/profile.d? When you

su -

can't you still run modprobe? What does

which modprobe

say?


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#3 2012-03-25 17:00:13

Starfall
Member
From: /home/
Registered: 2011-05-24
Posts: 209
Website

Re: [SOLVED] Broken PATH variable

Thanks for the response bohomil.

My path:

[$] echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin

Here's my /etc/profile

No changes to /etc/profile,d that I know of

Running modprobe using su - still reports that there's no command found

Using which to search for modprobe states that it's not found, both under my user account and under root sad

Don't know how the hell I borked this! D:


Visit my blog and my DeviatArt page

Offline

#4 2012-03-25 17:03:46

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: [SOLVED] Broken PATH variable

Starfall wrote:

Don't know how the hell I borked this! D:

That's why it's so pretty. big_smile

Are you sure you have kmod installed properly? (That's a low level question, I know, but if you can't access it from the root account...)

Edit: ...and if you do have it, are the bin files executable?

Last edited by bohoomil (2012-03-25 17:04:46)


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#5 2012-03-25 17:11:34

Starfall
Member
From: /home/
Registered: 2011-05-24
Posts: 209
Website

Re: [SOLVED] Broken PATH variable

tongue

I do have kmod installed

And they should be?

The only major changes I've made recently is changing my session manager, I switched from Slim to LightDM... but I'm pretty sure that wouldn't have an effect like this!

I really do think its just a PATH problem, because I used to be able to run these commands with no issues, then, randomly I can't. So when I exported sbin into my user's bashrc, I was able to run lspci, so I think it's the same issue with modprobe sad


Visit my blog and my DeviatArt page

Offline

#6 2012-03-25 17:13:24

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: [SOLVED] Broken PATH variable

Maybe check if things look better if your run X with startx?

Edit: For testing & emergency purposes I always have a generic X session option in my .xinitrc. Try launching X with

exec xterm -geometry 80x60+0+0 -name login

and check if you have access to modprobe then.

Last edited by bohoomil (2012-03-25 17:17:13)


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#7 2012-03-25 17:18:32

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Broken PATH variable

Starfall wrote:

The only major changes I've made recently is changing my session manager, I switched from Slim to LightDM... but I'm pretty sure that wouldn't have an effect like this!

Guess again: https://wiki.archlinux.org/index.php/LightDM

Offline

#8 2012-03-25 17:19:39

Starfall
Member
From: /home/
Registered: 2011-05-24
Posts: 209
Website

Re: [SOLVED] Broken PATH variable

Very interesting...

I started X with startx from tty1, ran a few tests... everything works as desired/expected neutral

What the f*ck is LightDM doing? Haha


Visit my blog and my DeviatArt page

Offline

#9 2012-03-25 17:23:50

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: [SOLVED] Broken PATH variable

So now check the solution provided under karol's link. wink


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#10 2012-03-25 17:32:01

Starfall
Member
From: /home/
Registered: 2011-05-24
Posts: 209
Website

Re: [SOLVED] Broken PATH variable

Ah crap... I didn't even see karol's post tongue Awesome, I'll check it out big_smile


Visit my blog and my DeviatArt page

Offline

#11 2012-03-25 17:32:27

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Broken PATH variable

Starfall wrote:

What the f*ck is LightDM doing? Haha

Teaching you what 'butterfly effect' is all about: very small actions can have extremely complex effects ;P

Offline

#12 2012-03-25 17:54:31

Starfall
Member
From: /home/
Registered: 2011-05-24
Posts: 209
Website

Re: [SOLVED] Broken PATH variable

karol wrote:
Starfall wrote:

What the f*ck is LightDM doing? Haha

Teaching you what 'butterfly effect' is all about: very small actions can have extremely complex effects ;P

Haha! Well, all in all, inadvertent lesson learned! It's all working now thanks to your link! wink


Visit my blog and my DeviatArt page

Offline

Board footer

Powered by FluxBB