You are not logged in.
Pages: 1
I'm not sure what happened, or what I did, but I can't seem to get any commands in /sbin, /etc/rc.d, or pretty much anything that needs to be run as root to work. I keep getting "command not found" Errors in the terminal, even if ls plainly tells me that the executable is there. Even which says it's not there.
I can't even -Syu right now
Offline
so are you ranting or you need help ?
What commands? Check your logs. See if you installed/uninstalled something. Check dmesg. Lots of things you can do before you come here to rant.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
He has a path problem.
$ echo $PATH
will probably show no /sbin or /usr/sbin paths.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
You're right about my path problem. And I wasn't trying to rant; apologies if it sounded like one.
How do I add those back into my path?
Offline
Find out where you are setting your PATH wrong. grep -r can be handy for that.
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
[james@arch-vaio ~]$ echo $PATH
/usr/lib/lightdm/lightdm:/usr/local/bin:/usr/bin:/bin
Is what I get... I don't know how to edit this, or what file it's in.
Offline
If you were messing with the PATH variable you need to correct its value as stated @Mr.Elendig.
On how to set your PATH you should try to search in here a little bit and I'm sure you will find more than 1 answer.
Just for reference:
https://bbs.archlinux.org/viewtopic.php … 32#p427932
https://bbs.archlinux.org/viewtopic.php … 21#p988621
Globally, the PATH is set inside the /etc/profile .
EDIT: corrected some typos
Last edited by ViruSzZ (2011-09-27 15:33:46)
Their Momma Made Em, Their Momma Gave em & now she can`t even SAVE`em | My WebLog
Offline
To make things a bit clearer, there should be a line like this in /etc/profile:
# Set our default path
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
export PATH
Check the files in /etc/profile.d as well if the PATH variable has been changed from a script sourced from there.
Also consult "man bash" about the order how the startup scripts are read then check each one in the chain.
Another thought - is the path ok for a newly created test user?
To know or not to know ...
... the questions remain forever.
Offline
It's quite possible he didn't mess with his path settings at all, he wouldn't be the first for whom such things go wrong (I have had that problem myself a few times).
Logging in and out should usually fix it, if that doesn't, try a reboot (or sourcing /etc/profile manually), if it's still broken after that, you'll have to start digging.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
Seems to be a lightdm problem
https://bbs.archlinux.org/viewtopic.php?id=126212
https://bbs.archlinux.org/viewtopic.php?id=125305
Offline
Seems to be a lightdm problem
https://bbs.archlinux.org/viewtopic.php?id=126212
https://bbs.archlinux.org/viewtopic.php?id=125305
Indeed. It should come with a warning "this display manager will b0rk your $PATH..."
Offline
I would suggest to upstream to fix that "feature"
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Pages: 1