I made a new user on my server. The user is not logged into the bash shell on startup. To do this I can run /bin/bash --login and it works.
Where do I place this command so that it runs automatically? I tried ~/.bashlogin', ~/.profile and ~/.bashrc. When I go back to login I see the user logging in, but the shell does looks like a shell without login. E.g.,
user@computer:~/path$
$
$
$
instead of
user@computer:~/path
user@computer:~/path
user@computer:~/path
How to run the command /bin/bash --login without doing it yourself?
user@computer:~/paththing? – user2609980 Sep 07 '14 at 21:09echo $0when you login – g4ur4v Sep 07 '14 at 21:13-shafter runningecho $0for the new user. After/bin/bash --loginthe result is/bin/bash. For root it is-bash– user2609980 Sep 07 '14 at 21:18