spookykidmm/zen_installer

Root shell set to '/usr/bin/' after install

Closed this issue · 1 comments

After install I was unable to sudo su - with my user, even though sudo otherwise seems to be working properly.

$ sudo su -
su: failed to execute /usr/bin/: Permission denied

This appears to be because root's shell is set to '/usr/bin/'.
root:x:0:0::/root:/usr/bin/

Changing the default shell to /bin/bash resolves all issue.

I'm guessing the issue is with this line.

else arch_chroot 'sudo pacman -S --noconfirm "$shell";chsh -s /usr/bin/"$shell"'

Checking to see if $shell is set or setting a default might help to resolve.

Think I fixed it. Thanks for pointing that out!