change the default shell for jexec

n9010

New Member

Reaction score: 1
Messages: 19

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: 8,795
Messages: 33,090

Why don't you simply define an alias?
 

spag

Member

Reaction score: 6
Messages: 46

Even you start shell by alias like bash or fish - default $SHELL is going to be CSH.
Bash:
 echo $SHELL
/bin/csh
any other suggestions?
 
Top