The /etc/profile/etc/profile
file contains system wide profile settings. Within that file, many distributions are sourcing scripts within /etc/profile.d/ /etc/profile.d
. Hence, all interactive logins will invoke what is in that folder. If you want a profile script to be scoped to one account, you have to either 1) move that script into ~/.profile or ~/.bash_profile (for bash users), or 2) add login in the vk.sh to skip execution based on the logged in user.
move that script into
~/.profile
or~/.bash_profile
(for bash users), oradd login in the
vk.sh
to skip execution based on the logged in user.