Search code examples
linuxshellzshopenvzproxmox

How to set zsh as default shell in openvz container?


I'm running a vz container (debian) on PVE, and I'd like to use zsh as my default shell when i run :

vzctl enter MY_CONTAINER_ID

I tried to run chsh in the container but it as no effect, unless I run su root, i'm still using bash.

Is-it at least possible ?

Anyone has succesfully achieved this ?


Solution

  • A post on the openvz ask the same question and the reply indicate that /bin/bash is hardcoded in the code of vzctl.