You are not logged in.
Pages: 1
Offline
Post here the output of
$ echo $PATH
and your ~/.bashrc file if any. You can set the PATH like so in ~/.bashrc - add:
PATH=$PATH:/your/new/path
. Can you not run commands as root ?
Last edited by roygbiv (2011-09-09 18:54:19)
Offline
Post here the output of
$ echo $PATH
and your ~/.bashrc file if any. You can set the PATH like so in ~/.bashrc - add:
PATH=$PATH:/your/new/path
. Can you not run commands as root ?
Thanks for quick reply.
$ echo $PATH
/usr/lib/lightdm/lightdm:/usr/local/bin:/usr/bin:/bin
.bashrc
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
EDIT:I can run commands as root. Sudo pacman -Syu will work but sudo modprobe will not work rather sudo /sbin/modprobe will do it.
Last edited by donniezazen (2011-09-09 18:58:01)
Offline
Ok, add the following to ~/.bashrc:
PATH=$PATH:/sbin
and then you should be set. Same procedure for other directories with binaries you want to run without specifying the absolute path. Re-log in or source the file:
$ source ~/.bashrc
Last edited by roygbiv (2011-09-09 19:03:38)
Offline
As roygbiv said you can add sbin to your path, though this should already be done in /etc/profile. I think I still have the default lines which are
# Set our default path
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
export PATH
If that's the same there's probably something else going wrong
Offline
As roygbiv said you can add sbin to your path, though this should already be done in /etc/profile. I think I still have the default lines which are
# Set our default path PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin" export PATH
If that's the same there's probably something else going wrong
I have this in /etc/profile. Their might be something wrong. I am new to Arch Linux and messing up with it.
Thanks for the solution guys.
Offline
In my view it seems that a certain lightdm is messing up your PATH. Good luck!
Offline
Someone else had the same issue some time ago. For my understanding, you have to create a session wrapper for lightdm, that sources your /etc/profile. Have a look at https://bbs.archlinux.org/viewtopic.php … 45#p982145.
Offline
Someone else had the same issue some time ago. For my understanding, you have to create a session wrapper for lightdm, that sources your /etc/profile. Have a look at https://bbs.archlinux.org/viewtopic.php … 45#p982145.
It probably happens due to lightdm. I did a new system install and after lightdm install it ended up with same problem.
Offline
Pages: 1