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:~/path
thing?echo $0
when you login-sh
after runningecho $0
for the new user. After/bin/bash --login
the result is/bin/bash
. For root it is-bash