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

Solution Unverified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content