Why do the file /etc/profile and ~/.bash_profile not get is not executed when logged in through Vsphere?
Issue
- There are some scripts written in
/etc/profile
and~/.bash_profile
but while login through Vsphere console, those files don't get executed. - Through
ssh
connection, those get executed. - Where to write the scripts to get them executed every time any user logs in?
Environment
- Red Hat Enterprise Linux 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.