You are not logged in.

#1 2010-11-29 21:17:55

Dinosaw
Member
Registered: 2010-08-12
Posts: 11

[solved]Various commands no longer found

Commands such as iwconfig and wpa_supplicant can no longer be found, however typing the full command eg. /usr/sbin/wpa_supplicant does still work.
From what i have found halt, reboot, telinit and the wireless_tools/wpa_supplicant are the only commands that no longer work, but they could be more.

This happened after setting inittab to start X at boot and uninstalling slim, but i can't think how this would be related.

Thanks
Dinosaw

Last edited by Dinosaw (2010-11-29 21:35:07)

Offline

#2 2010-11-29 21:24:55

Cyrusm
Member
From: Bozeman, MT
Registered: 2007-11-15
Posts: 1,053

Re: [solved]Various commands no longer found

what do you get when you echo $PATH ?


Hofstadter's Law:
           It always takes longer than you expect, even when you take into account Hofstadter's Law.

Offline

#3 2010-11-29 21:25:57

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [solved]Various commands no longer found

You're starting X without starting a login shell. Thus, your PATH is never correctly set by /etc/profile. You'll need to wrap your startx command in a bash login shell, inside the /bin/su call. Something along the lines of...

/bin/su -l userfoo -c 'bash -l -c startx'

Offline

#4 2010-11-29 21:34:51

Dinosaw
Member
Registered: 2010-08-12
Posts: 11

Re: [solved]Various commands no longer found

falconindy wrote:

You're starting X without starting a login shell. Thus, your PATH is never correctly set by /etc/profile. You'll need to wrap your startx command in a bash login shell, inside the /bin/su call. Something along the lines of...

/bin/su -l userfoo -c 'bash -l -c startx'

This worked, thanks!

Offline

Board footer

Powered by FluxBB