I work on a ubuntu server and I don't have the root permission. The default shell is dash
.
When I try to change the default shell,it tells me it don't have permission.
user@host:~$ chsh -s "which zsh"
You may not change the shell for 'binjie'.
The permission issue cannot be solved, so I turn to ~/.profile
to run bash every time I log in. When I add echo something
to ~/.profile
, it is executed. But when I add exec -c bash
to ~/.profile
, after I logged in via SSH the shell lost response. After I clicked Ctrl-C
the connection was closed. I'm very confused. Can anyone help?