Debian-based container not loading /etc/profile.d/ scripts when using "pct enter"

loneboat

Well-Known Member
Jan 17, 2019
39
3
48
35
I have some aliases I'd like to load in my container when someone logs into them. I created a file called /etc/profile.d/aliases.sh, and this works as expected when I SSH into my container. However I have noticed that when I log into a container via the pct enter <VMID> command, this file is not sourced.

What is the difference between a prompt obtained by SSH into the box, and a prompt obtained by running pct enter <VMID> which would prevent these profiles from being sourced?