I am having linux mint 18. I accidentally removed
/bin/bash. So just after removing it I changed the default shell of the user from terminal (from
/bin/sh links to
/etc/passwd. Now After reboot I am stuck in login loop. After typing credential get blank screen for 10 seconds again get same login screen. Also
tty1 tty2... are not working. As I enter my credential they disappears and again get same thing on these terminals.
When I enter in recovery mode I am getting the same login screen as normal user. I am not getting recovery mode options. It just brings me to login screen.
I pressed e at the grub menu and I added
rw init=/bin/dash at the end of line where linux /boot/vmlinuz.... is written.
ls -l /etc/passwd is
rw-r--r-- root root
If I do
cat /etc/passwd users entry is
ls -l /bin/dash shows it doesn't point to
/bin/bash. As one answer said to check it.
I downloaded bash package in my windows system, copied to external hard disk and then copied it from hard disk to linux system. Compiled and installed it. Copied executable to
chsh -s /bin/bash user
Now I can go into recovery mode it works fine.I can use
tty1.. they also work fine.I can switch to user using
su user in
tty1 and it works fine. If I do
echo $SHELL it says
/bin/bash, but still can't go into graphical environment.Neither guest nor user can log into graphical system.User can use terminal easily it works there but can't use graphical environment.