Why do the file /etc/profile and ~/.bash_profile not get is not executed when logged in through Vsphere?

Solution Unverified - Updated -


  • 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?


  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In