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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.