No chsh command. How to change shell from sh to Alt-F's bash?

236 views
Skip to first unread message

boxbox

unread,
Dec 11, 2014, 2:28:28 PM12/11/14
to
What command can I put in my startup user script (or elsewhere) that would set the root user's shell in /etc/passwd to be the bash installed through the Alt-F package, rather than the default of sh? I tried putting 'chsh /usr/bin/bash' in that startup script which of course failed because the chsh command doesn't exist.

I'd basically like it so that when I SSH in to the box I'm immediately in bash without having to remember to type 'bash' first to enter that shell.

João Cardoso

unread,
Dec 11, 2014, 7:29:26 PM12/11/14
to al...@googlegroups.com


On Thursday, December 11, 2014 7:28:28 PM UTC, boxbox wrote:
What command can I put in my startup user script (or elsewhere) that would set the root user's shell in /etc/passwd to be the bash installed through the Alt-F package, rather than the default of sh?

That is not recommended, *don't* do it! 
If there is any issue with the disk/filesystem you will not be able to login to fix it.
Keep typing 'exec bash' after login.
Reply all
Reply to author
Forward
0 new messages