92
23
I have a Ubuntu Server VPS and I want to use /bin/bash/
as my shell. How can I change my shell? I have root access but I don't work as root. So dash is my default shell now.
I have read How do I make Bash my default shell on Ubuntu? and chsh
seams to be the preferred way to go. But when I type chsh /bin/bash
I get this message:
chsh: unknown user /bin/bash
And if I just type /bin/bash
the Bash shell seams to work fine. How to change it?
Ah, that was even better! – Jonas – 2010-03-12T20:19:27.027
1Works for me. Sounds like your system has been deliberately locked down. – Michael Cole – 2016-02-25T21:22:39.457
1I use ssh, but chsh asks me for password which I don't know. Any way to work around this? – Qwerty – 2016-04-28T13:25:05.800
+1 @Henning I found
– therobyouknow – 2018-09-19T11:55:31.117chsh -s /bin/bash web
to work, as in the answer below from Dentrasi. I can now use tab file/folder path autocomplete at the terminal with my new non-root user (as this is setup in the.bashrc
file in the user's home directory, I believe (find it withls -al
)8don't forget to log out and log back in to see the change. – driftcatcher – 2013-07-03T12:23:23.043
26Doesn't work as normal user:
$ chsh You may not change the shell for 'user'. – Henning – 2014-05-01T20:00:37.577