Newly created user on Ubuntu Server has the wrong shell prompt

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I've created a new user in the Ubuntu 18.04.01 like this:



sudo useradd svn
sudo passwd svn
sudo mkhomedir_helper svn
sudo usermod -d /home/svn -m svn


Problem is, that if I switch to the user by su svn I don't see a standard prompt command. Instead of standard prompt:



svn@svn-server:/srv/svn/$


I see only:



$


despite the content of the file /home/svn/.bashrc. And in this "crippled" prompt I also cannot use TAB key to autocomplete paths.



If I run echo $PS1 as svn user I get empty result.



How can I fix this user?










share|improve this question









New contributor




zdenek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    up vote
    1
    down vote

    favorite












    I've created a new user in the Ubuntu 18.04.01 like this:



    sudo useradd svn
    sudo passwd svn
    sudo mkhomedir_helper svn
    sudo usermod -d /home/svn -m svn


    Problem is, that if I switch to the user by su svn I don't see a standard prompt command. Instead of standard prompt:



    svn@svn-server:/srv/svn/$


    I see only:



    $


    despite the content of the file /home/svn/.bashrc. And in this "crippled" prompt I also cannot use TAB key to autocomplete paths.



    If I run echo $PS1 as svn user I get empty result.



    How can I fix this user?










    share|improve this question









    New contributor




    zdenek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I've created a new user in the Ubuntu 18.04.01 like this:



      sudo useradd svn
      sudo passwd svn
      sudo mkhomedir_helper svn
      sudo usermod -d /home/svn -m svn


      Problem is, that if I switch to the user by su svn I don't see a standard prompt command. Instead of standard prompt:



      svn@svn-server:/srv/svn/$


      I see only:



      $


      despite the content of the file /home/svn/.bashrc. And in this "crippled" prompt I also cannot use TAB key to autocomplete paths.



      If I run echo $PS1 as svn user I get empty result.



      How can I fix this user?










      share|improve this question









      New contributor




      zdenek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I've created a new user in the Ubuntu 18.04.01 like this:



      sudo useradd svn
      sudo passwd svn
      sudo mkhomedir_helper svn
      sudo usermod -d /home/svn -m svn


      Problem is, that if I switch to the user by su svn I don't see a standard prompt command. Instead of standard prompt:



      svn@svn-server:/srv/svn/$


      I see only:



      $


      despite the content of the file /home/svn/.bashrc. And in this "crippled" prompt I also cannot use TAB key to autocomplete paths.



      If I run echo $PS1 as svn user I get empty result.



      How can I fix this user?







      ubuntu users administration useradd






      share|improve this question









      New contributor




      zdenek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      zdenek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 24 mins ago









      Kusalananda

      112k15216344




      112k15216344






      New contributor




      zdenek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 1 hour ago









      zdenek

      1083




      1083




      New contributor




      zdenek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      zdenek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      zdenek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          4
          down vote



          accepted










          Check the shell, you have assigned. If you have tried the useradd command in Ubuntu 18 Version, the default login shell will be /bin/sh and you will get output like you mentioned. You can change the login shell by executing the command:



          sudo usermod -s /bin/bash svn





          share|improve this answer










          New contributor




          BYRAKUR SURESH BABU is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.

















          • excellent first answer! +1
            – Fabby
            26 mins ago










          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: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          zdenek is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f479086%2fnewly-created-user-on-ubuntu-server-has-the-wrong-shell-prompt%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          4
          down vote



          accepted










          Check the shell, you have assigned. If you have tried the useradd command in Ubuntu 18 Version, the default login shell will be /bin/sh and you will get output like you mentioned. You can change the login shell by executing the command:



          sudo usermod -s /bin/bash svn





          share|improve this answer










          New contributor




          BYRAKUR SURESH BABU is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.

















          • excellent first answer! +1
            – Fabby
            26 mins ago














          up vote
          4
          down vote



          accepted










          Check the shell, you have assigned. If you have tried the useradd command in Ubuntu 18 Version, the default login shell will be /bin/sh and you will get output like you mentioned. You can change the login shell by executing the command:



          sudo usermod -s /bin/bash svn





          share|improve this answer










          New contributor




          BYRAKUR SURESH BABU is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.

















          • excellent first answer! +1
            – Fabby
            26 mins ago












          up vote
          4
          down vote



          accepted







          up vote
          4
          down vote



          accepted






          Check the shell, you have assigned. If you have tried the useradd command in Ubuntu 18 Version, the default login shell will be /bin/sh and you will get output like you mentioned. You can change the login shell by executing the command:



          sudo usermod -s /bin/bash svn





          share|improve this answer










          New contributor




          BYRAKUR SURESH BABU is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          Check the shell, you have assigned. If you have tried the useradd command in Ubuntu 18 Version, the default login shell will be /bin/sh and you will get output like you mentioned. You can change the login shell by executing the command:



          sudo usermod -s /bin/bash svn






          share|improve this answer










          New contributor




          BYRAKUR SURESH BABU is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          share|improve this answer



          share|improve this answer








          edited 25 mins ago









          Fabby

          2,6431823




          2,6431823






          New contributor




          BYRAKUR SURESH BABU is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          answered 1 hour ago









          BYRAKUR SURESH BABU

          562




          562




          New contributor




          BYRAKUR SURESH BABU is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





          New contributor





          BYRAKUR SURESH BABU is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          BYRAKUR SURESH BABU is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.











          • excellent first answer! +1
            – Fabby
            26 mins ago
















          • excellent first answer! +1
            – Fabby
            26 mins ago















          excellent first answer! +1
          – Fabby
          26 mins ago




          excellent first answer! +1
          – Fabby
          26 mins ago










          zdenek is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          zdenek is a new contributor. Be nice, and check out our Code of Conduct.












          zdenek is a new contributor. Be nice, and check out our Code of Conduct.











          zdenek is a new contributor. Be nice, and check out our Code of Conduct.













           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f479086%2fnewly-created-user-on-ubuntu-server-has-the-wrong-shell-prompt%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          What does second last employer means? [closed]

          List of Gilmore Girls characters

          Confectionery