i installed bash to entware.
But, cannot figure out how to successfully set it up as the default shell.
i tried usermod -s /opt/bin/bash user, but /etc/passwd had multiple entries for user. All of the suggested utilities for fixing /etc/passwd aren't available. (pwck or grpck)
If I manually edit user:x:0:0:user:/root:/bin/sh to user:x:0:0:user:/root:/opt/bin/bash I cannot ssh in through a key or password. (bash is in entware's /opt/bin/bash) If I use user:x:0:0:user:/opt/bin/bash I can get in, but don't get a command prompt.
I can change to bash just by typing in bash, but that doesn't remain the same for the next login.
How do i set up bash as default shell?
But, cannot figure out how to successfully set it up as the default shell.
i tried usermod -s /opt/bin/bash user, but /etc/passwd had multiple entries for user. All of the suggested utilities for fixing /etc/passwd aren't available. (pwck or grpck)
If I manually edit user:x:0:0:user:/root:/bin/sh to user:x:0:0:user:/root:/opt/bin/bash I cannot ssh in through a key or password. (bash is in entware's /opt/bin/bash) If I use user:x:0:0:user:/opt/bin/bash I can get in, but don't get a command prompt.
I can change to bash just by typing in bash, but that doesn't remain the same for the next login.
How do i set up bash as default shell?