Different command prompts for user and root

The name of the pictureThe name of the pictureThe name of the pictureClash 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?







share|improve this question















  • 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






  • 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















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?







share|improve this question















  • 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






  • 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













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?







share|improve this question











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?









share|improve this question










share|improve this question




share|improve this question









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 to bash - not a different shell such as dash?
    – 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




    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




    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











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.






share|improve this answer




























    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.






    share|improve this answer





















      Your Answer







      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "106"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      convertImagesToLinks: false,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );








       

      draft saved


      draft discarded


















      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






























      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.






      share|improve this answer

























        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.






        share|improve this answer























          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.






          share|improve this answer













          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.







          share|improve this answer













          share|improve this answer



          share|improve this answer











          answered Jun 22 at 15:57









          Joe M

          5964




          5964






















              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.






              share|improve this answer

























                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.






                share|improve this answer























                  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.






                  share|improve this answer













                  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.







                  share|improve this answer













                  share|improve this answer



                  share|improve this answer











                  answered Jun 22 at 18:12









                  Mark Scheck

                  13




                  13






















                       

                      draft saved


                      draft discarded


























                       


                      draft saved


                      draft discarded














                      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













































































                      Popular posts from this blog

                      Peggy Mitchell

                      Palaiologos

                      The Forum (Inglewood, California)