Different command prompts for user and root

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I'm using putty client in windows to connect to remote Debian 6 via SSH. If I login as root I have normal command prompt like root@ion:~# and command autocomplete works fine when press tab.
In case I log as not root user I have only $ in command prompt and no command autocomplete.
Why it is so and how to expand not root user possibilities?
linux bash debian ssh
add a comment |Â
up vote
0
down vote
favorite
I'm using putty client in windows to connect to remote Debian 6 via SSH. If I login as root I have normal command prompt like root@ion:~# and command autocomplete works fine when press tab.
In case I log as not root user I have only $ in command prompt and no command autocomplete.
Why it is so and how to expand not root user possibilities?
linux bash debian ssh
1
Are you sure your non-root user's login shell on the remote system is set tobash- not a different shell such asdash?
â steeldriver
Jun 22 at 15:04
1
This depends on the type of shell you have and its configuration. The root prompt is by tradition#to be significantly different from the traditional non-root prompt$. What shell are you using as the non-root user?
â Kusalananda
Jun 22 at 15:04
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm using putty client in windows to connect to remote Debian 6 via SSH. If I login as root I have normal command prompt like root@ion:~# and command autocomplete works fine when press tab.
In case I log as not root user I have only $ in command prompt and no command autocomplete.
Why it is so and how to expand not root user possibilities?
linux bash debian ssh
I'm using putty client in windows to connect to remote Debian 6 via SSH. If I login as root I have normal command prompt like root@ion:~# and command autocomplete works fine when press tab.
In case I log as not root user I have only $ in command prompt and no command autocomplete.
Why it is so and how to expand not root user possibilities?
linux bash debian ssh
asked Jun 22 at 15:02
vico
214514
214514
1
Are you sure your non-root user's login shell on the remote system is set tobash- not a different shell such asdash?
â steeldriver
Jun 22 at 15:04
1
This depends on the type of shell you have and its configuration. The root prompt is by tradition#to be significantly different from the traditional non-root prompt$. What shell are you using as the non-root user?
â Kusalananda
Jun 22 at 15:04
add a comment |Â
1
Are you sure your non-root user's login shell on the remote system is set tobash- not a different shell such asdash?
â steeldriver
Jun 22 at 15:04
1
This depends on the type of shell you have and its configuration. The root prompt is by tradition#to be significantly different from the traditional non-root prompt$. What shell are you using as the non-root user?
â Kusalananda
Jun 22 at 15:04
1
1
Are you sure your non-root user's login shell on the remote system is set to
bash - not a different shell such as dash?â steeldriver
Jun 22 at 15:04
Are you sure your non-root user's login shell on the remote system is set to
bash - not a different shell such as dash?â steeldriver
Jun 22 at 15:04
1
1
This depends on the type of shell you have and its configuration. The root prompt is by tradition
# to be significantly different from the traditional non-root prompt $. What shell are you using as the non-root user?â Kusalananda
Jun 22 at 15:04
This depends on the type of shell you have and its configuration. The root prompt is by tradition
# to be significantly different from the traditional non-root prompt $. What shell are you using as the non-root user?â Kusalananda
Jun 22 at 15:04
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
2
down vote
accepted
When you login run the command ps as each user it will tell you which shell is being invoked. See if they are both bash.
If they are both bash, you could execute the builtin complete and see if that turns on autocompletion in bash. If that fixes the problem , just add complete to your users .bashrc
As for the prompt, that is a function of the environment variable PS1 run the command echo $PS1 and see what it says.
add a comment |Â
up vote
0
down vote
You can also find your shell by typing echo $SHELL also, I would cat /etc/password to see what shell that it's set to.
Also, you can run chsh, to change your shell.
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
When you login run the command ps as each user it will tell you which shell is being invoked. See if they are both bash.
If they are both bash, you could execute the builtin complete and see if that turns on autocompletion in bash. If that fixes the problem , just add complete to your users .bashrc
As for the prompt, that is a function of the environment variable PS1 run the command echo $PS1 and see what it says.
add a comment |Â
up vote
2
down vote
accepted
When you login run the command ps as each user it will tell you which shell is being invoked. See if they are both bash.
If they are both bash, you could execute the builtin complete and see if that turns on autocompletion in bash. If that fixes the problem , just add complete to your users .bashrc
As for the prompt, that is a function of the environment variable PS1 run the command echo $PS1 and see what it says.
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
When you login run the command ps as each user it will tell you which shell is being invoked. See if they are both bash.
If they are both bash, you could execute the builtin complete and see if that turns on autocompletion in bash. If that fixes the problem , just add complete to your users .bashrc
As for the prompt, that is a function of the environment variable PS1 run the command echo $PS1 and see what it says.
When you login run the command ps as each user it will tell you which shell is being invoked. See if they are both bash.
If they are both bash, you could execute the builtin complete and see if that turns on autocompletion in bash. If that fixes the problem , just add complete to your users .bashrc
As for the prompt, that is a function of the environment variable PS1 run the command echo $PS1 and see what it says.
answered Jun 22 at 15:57
Joe M
5964
5964
add a comment |Â
add a comment |Â
up vote
0
down vote
You can also find your shell by typing echo $SHELL also, I would cat /etc/password to see what shell that it's set to.
Also, you can run chsh, to change your shell.
add a comment |Â
up vote
0
down vote
You can also find your shell by typing echo $SHELL also, I would cat /etc/password to see what shell that it's set to.
Also, you can run chsh, to change your shell.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
You can also find your shell by typing echo $SHELL also, I would cat /etc/password to see what shell that it's set to.
Also, you can run chsh, to change your shell.
You can also find your shell by typing echo $SHELL also, I would cat /etc/password to see what shell that it's set to.
Also, you can run chsh, to change your shell.
answered Jun 22 at 18:12
Mark Scheck
13
13
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f451327%2fdifferent-command-prompts-for-user-and-root%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Are you sure your non-root user's login shell on the remote system is set to
bash- not a different shell such asdash?â steeldriver
Jun 22 at 15:04
1
This depends on the type of shell you have and its configuration. The root prompt is by tradition
#to be significantly different from the traditional non-root prompt$. What shell are you using as the non-root user?â Kusalananda
Jun 22 at 15:04