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 ?


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

When there is a will, there is a way !

I replaced the whole content of ~/.bashrc with :

zsh && exit

And it did the job... Maybe it's a bit hacky, but found no other way...

Need Your Help

How to get without "default.aspx" url?

redirect url-rewriting global-asax

I implemented a following code in Global.asax file of my web application.

ASP.Net webservice with SQL Server database connectivity .net database web-services

I'm a complete beginner in ASP.Net webservices can anyone point me to a good tutorial by which I may implement a web service with SQL Server database connectivity?