shell used by 'vzctl enter' [message #35864] |
Tue, 28 April 2009 17:08 |
usar
Messages: 1 Registered: April 2009
|
Junior Member |
|
|
Hi,
is there a way to specify/change the shell started inside the VE by 'vzctl enter foo'?
Right now, it always starts bash. Not /bin/sh (which is dash for me), nor the shell set up for root in passwd(5) (which is zsh).
|
|
|
Re: shell used by 'vzctl enter' [message #35914 is a reply to message #35864] |
Thu, 30 April 2009 08:54 |
maratrus
Messages: 1495 Registered: August 2007 Location: Moscow
|
Senior Member |
|
|
Please, look at the code:
http://git.openvz.org/?p=vzctl;a=blob;f=src/enter.c;h=2ad979e3f6c0fa652908c5adbc2198dc9db663d7;hb=f76ccaaf72d0bd485d72bdd4e34f95f02878c172#l313
execve("/bin/bash", arg, env);
execve("/bin/sh", arg, env);
You may rebuild vzctl if you want.
|
|
|