change the default shell for jexec

n9010

New Member

Reaction score: 1
Messages: 18

Hi,

I recently changed the default shell of one of my servers to zsh, since I'm lazy I used to type jexec <jailname> to jump inside a jail.
After I switched to zsh, I get an error because zsh is not installed inside the jails.
I know that I can use jexec <jailname> /bin/csh, but since I'm lazy I would like to avoid to write extra stuff. Is there a way to set which shell to use for jexec(8)?

Thanks
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 7,537
Messages: 30,238

Why don't you simply define an alias?
 
Top