You are not logged in.
Ok, the problem I've got is this: sudo has suddenly started acting real strange. It can't find any programs. For example, if i type
sudo echoIt just goes
sudo: echo: command not foundAnd another problem I've got, is that as a regular user, it can't find programs in /sbin, or other "exotic" places. For example it can't find firefox, because it's not in /usr/bin or /bin, but in /opt/mozilla/bin.
Please, help me!
Last edited by mrpedroxx (2008-06-14 13:23:49)
Offline
Sounds like your system is a bit broken. /opt/mozilla/bin should be in your path.
Can you post the output of these three commands.
sudo -V
$PATH
pacman -Q firefoxAlso you may want to have a look at '/var/log/errors.log' as root to see if something bad is going on with your hard disk.
Last edited by shazeal (2008-06-13 10:43:46)
Offline
sudo -V outputs this
Sudo version 1.6.9p15$PATH outputs
bash: /usr/gnu/bin:/usr/local/bin:/bin:/usr/bin:.: No such file or directorypacman -Q firefox outputs
firefox 2.0.0.7-1Yeah, maybe I should update it anyway ![]()
And /var/log/errors.log does contain stuff about hard disks, but it's just me mounting my iPod and the Windows partition on my hd ![]()
Offline
Yep your path is messed up. Really badly ![]()
Its missing /sbin:/usr/sbin:/opt/mozilla/bin
Are you setting your path somewhere else like ~/.bashrc ?
If you are put ':$PATH' on the end of the line you are setting it on.
If you arent and somehow your path is just messed up as a temporary fix open up ~/.bashrc with a text editor and put
PATH=/sbin:/usr/sbin:/opt/mozilla/bin:$PATHLog out and back in and it should be right again. Im guessing you are setting the PATH variable somewhere though as you have a couple of custom paths in there.
Offline
I would highly suggest updating your system (pacman -Syu). Reinstall the filesystem package and you will get the default version of /etc/profile which should fix your path problems.
Offline
Ok, I'll try to update. But thanks shazeal, that solved the problem, at least temporarily. Though not on sudo..
But now, off to updating! ![]()
Offline
Everything working now, thanks guys! ![]()
Offline