I am not too familiar with this level of management on a nix server however I am unable to get either the bashrc or bash_profile to source at login.
Details about the server:
- Centos 6.0 - Basic GUI installation
- Virtualmin Server Manager
I am logging in as a user I created in the Virtualmin module through ssh and putty from my windows pc. The .bash_profile has the following in it:
PATH=$PATH:$HOME/bin
export PATH
I've created a bin directory in that user's home and placed my application inside however upon log out and log in there is no change. I've tried adding the same two lines in the bashrc file as well when I saw that it wasn't working in the bash profile.
So far I can remedy the situation by typing source .bash_profile but that is tedious. I thought I could save some time by making a bash shell script but alas i cannot simply type in ./script.sh I must type source ~/script.sh in order for it to be effective under the current shell.
How do I get these scripts to load? Is it that virtualmin disables the user profiles? Is logging in via ssh preventing them from loading? Is it that installing Centos 6 with a gui disables profiles loading in terminals regardless of them being tunneled through ssh?
Thank you for the help.
Full contents of Bash Profile:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH