Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
muhgrill opened this issue Jun 2, 2019 · 1 comment
Closed

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

muhgrill opened this issue Jun 2, 2019 · 1 comment

Comments

@muhgrill
Copy link

muhgrill commented Jun 2, 2019

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.

@spookykidmm
Copy link
Owner

Think I fixed it. Thanks for pointing that out!

spookykidmm added a commit that referenced this issue May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants