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

loneboat

Well-Known Member
Jan 17, 2019
37
2
48
34
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?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!