How can I change the $PATH variable in Debian? I tried to change /etc/profile
but this affected only normal users (and yes, I added path to BOTH user's and root's paths).
After that I tried to edit /root/.profile
and then /root/.bashrc
also ...
Neither worked. Do you know where could be problem?
This is set in the /etc/login.defs on debian 6.0 .
These are the lines you have to edit:
EDIT:
I forgot to put where I found the solution: https://serverfault.com/questions/166383/how-set-path-for-all-users-in-debian
Edit your
/etc/.profile
to includeset -vx
near the top. Restart from fresh window. Then you can see what '.' files are processed AND where PATH is being reset.Also, confirm that you are really in the shell that you think. After all startup scripts are finished, do
echo $SHELL
and confirm the value = the shell you expect, most likelybash
.I hope this helps.
Modify
/etc/environment
to include a line like this: