I just installed the latest version of Samba but I guess I did it wrong.
Every time I need to run a command, I have to be in the correct directory
of Samba. How do I set the $PATH variable? I looked but can't find the
I would place site/custom global environment variables in xx_local.sh
That way you can pop xx_local.sh in on new installs.
If you have an /etc/profile.d directory; do a
chmod 755 xx_local.sh
Then add your changes, Example: export PATH=$PATH:new_path:another_path
~userid_here/.bash_profile - for environment variables
~userid_here/.bashrc - for function & aliases, not env vars
ALWAYS do a su -l user_id to test your changes before logging out.
Profiles usually run once, bashrc run everytime you spin up a non-login
Sessions inherit env vars from the parent process.
Setting BASH_ENV=~/.bashrc will cause it to execute during
for extra points do a
Is it possible to include remote directories in your path variable?
6. Parity Error