Problem with User Login.

Well I did a mistake by running:
$ pw usermod user_name -s /usr/local/bin/bash

And now whenever I try to log with that user it keeps redirecting me to login ... Is there a way to make it default again? Thanks.
 
I got it! I just changed the directory to /bin/sh using [cmd=]pw usermod user_name -s /bin/sh [/cmd] and everything is ok now! Thank you!
 
You have to add it into /etc/shells, login does not allow shells that are not listed there. How did you install bash? The port shells/bash should have automatically added these lines to /etc/shells:

Code:
/usr/local/bin/bash
/usr/local/bin/rbash
 
I didn't want bash, just got confused with a command and did this mistake. I am really new to Unix Systems. Anyway thanks for guiding me :)
 
Back
Top