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/profileand~/.bash_profilebut while login through Vsphere console, those files don't get executed. - Through
sshconnection, 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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
