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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.