OpenVZ Forum


Home » General » Support » shell used by 'vzctl enter'
shell used by 'vzctl enter' [message #35864] Tue, 28 April 2009 17:08 Go to next message
usar is currently offline  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 Go to previous message
maratrus is currently offline  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.
Previous Topic: Question about Live Migration
Next Topic: Syslog-ng on HN eats RAM and OOM Killer kills VE processess (CRITICAL)
Goto Forum:
  


Current Time: Mon Aug 12 10:54:21 GMT 2024

Total time taken to generate the page: 0.02941 seconds