Ubuntu remote login - different shells

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








up vote
0
down vote

favorite












Why does logging into one account yield a shell with the name of the user, as well as color coded files/folders and the other shell in just "$" and only white text? See attached. I would like both sign ins to look like the left.



Putty Screens



Putty Screens



$ echo $PS1



  • Left:



    [e]0;u@h: wa]$debian_chroot:+($debian_chroot)u@h:w$



  • Right:



    $debian_chroot:+($debian_chroot)u@h:w$










share|improve this question























  • Are you asking how to change the second user's login shell - or how to change the prompt string and LS_COLORS in spite of the different shell?
    – steeldriver
    Feb 7 at 1:52










  • I would like to change the right shell so it behaves and looks like the left.
    – xbraatz
    Feb 7 at 2:01










  • I would also echo $PS1 for each (ie. show your prompt) in case they are setup differently. Yes it could be different shells are default for the different users.
    – guiverc
    Feb 7 at 2:48














up vote
0
down vote

favorite












Why does logging into one account yield a shell with the name of the user, as well as color coded files/folders and the other shell in just "$" and only white text? See attached. I would like both sign ins to look like the left.



Putty Screens



Putty Screens



$ echo $PS1



  • Left:



    [e]0;u@h: wa]$debian_chroot:+($debian_chroot)u@h:w$



  • Right:



    $debian_chroot:+($debian_chroot)u@h:w$










share|improve this question























  • Are you asking how to change the second user's login shell - or how to change the prompt string and LS_COLORS in spite of the different shell?
    – steeldriver
    Feb 7 at 1:52










  • I would like to change the right shell so it behaves and looks like the left.
    – xbraatz
    Feb 7 at 2:01










  • I would also echo $PS1 for each (ie. show your prompt) in case they are setup differently. Yes it could be different shells are default for the different users.
    – guiverc
    Feb 7 at 2:48












up vote
0
down vote

favorite









up vote
0
down vote

favorite











Why does logging into one account yield a shell with the name of the user, as well as color coded files/folders and the other shell in just "$" and only white text? See attached. I would like both sign ins to look like the left.



Putty Screens



Putty Screens



$ echo $PS1



  • Left:



    [e]0;u@h: wa]$debian_chroot:+($debian_chroot)u@h:w$



  • Right:



    $debian_chroot:+($debian_chroot)u@h:w$










share|improve this question















Why does logging into one account yield a shell with the name of the user, as well as color coded files/folders and the other shell in just "$" and only white text? See attached. I would like both sign ins to look like the left.



Putty Screens



Putty Screens



$ echo $PS1



  • Left:



    [e]0;u@h: wa]$debian_chroot:+($debian_chroot)u@h:w$



  • Right:



    $debian_chroot:+($debian_chroot)u@h:w$







command-line putty






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 7 at 14:09









dessert

20k55795




20k55795










asked Feb 7 at 1:41









xbraatz

32




32











  • Are you asking how to change the second user's login shell - or how to change the prompt string and LS_COLORS in spite of the different shell?
    – steeldriver
    Feb 7 at 1:52










  • I would like to change the right shell so it behaves and looks like the left.
    – xbraatz
    Feb 7 at 2:01










  • I would also echo $PS1 for each (ie. show your prompt) in case they are setup differently. Yes it could be different shells are default for the different users.
    – guiverc
    Feb 7 at 2:48
















  • Are you asking how to change the second user's login shell - or how to change the prompt string and LS_COLORS in spite of the different shell?
    – steeldriver
    Feb 7 at 1:52










  • I would like to change the right shell so it behaves and looks like the left.
    – xbraatz
    Feb 7 at 2:01










  • I would also echo $PS1 for each (ie. show your prompt) in case they are setup differently. Yes it could be different shells are default for the different users.
    – guiverc
    Feb 7 at 2:48















Are you asking how to change the second user's login shell - or how to change the prompt string and LS_COLORS in spite of the different shell?
– steeldriver
Feb 7 at 1:52




Are you asking how to change the second user's login shell - or how to change the prompt string and LS_COLORS in spite of the different shell?
– steeldriver
Feb 7 at 1:52












I would like to change the right shell so it behaves and looks like the left.
– xbraatz
Feb 7 at 2:01




I would like to change the right shell so it behaves and looks like the left.
– xbraatz
Feb 7 at 2:01












I would also echo $PS1 for each (ie. show your prompt) in case they are setup differently. Yes it could be different shells are default for the different users.
– guiverc
Feb 7 at 2:48




I would also echo $PS1 for each (ie. show your prompt) in case they are setup differently. Yes it could be different shells are default for the different users.
– guiverc
Feb 7 at 2:48










1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










I would guess you're using different shells. What you see on the left is the default prompt for the Bash shell, and what is on the right might be the system shell: Dash.



To change your shell to Bash, try logging in as the given user and then:



chsh -s /bin/bash


Or as root (eg with sudo), try



chsh -s /bin/bash user


How you ended up with a shell other than Bash is another matter: perhaps that user was created as a system user or was created by some software directly modifying /etc/passwd instead of the usual adduser command (or even useradd).






share|improve this answer






















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    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: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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%2faskubuntu.com%2fquestions%2f1003730%2fubuntu-remote-login-different-shells%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
    2
    down vote



    accepted










    I would guess you're using different shells. What you see on the left is the default prompt for the Bash shell, and what is on the right might be the system shell: Dash.



    To change your shell to Bash, try logging in as the given user and then:



    chsh -s /bin/bash


    Or as root (eg with sudo), try



    chsh -s /bin/bash user


    How you ended up with a shell other than Bash is another matter: perhaps that user was created as a system user or was created by some software directly modifying /etc/passwd instead of the usual adduser command (or even useradd).






    share|improve this answer


























      up vote
      2
      down vote



      accepted










      I would guess you're using different shells. What you see on the left is the default prompt for the Bash shell, and what is on the right might be the system shell: Dash.



      To change your shell to Bash, try logging in as the given user and then:



      chsh -s /bin/bash


      Or as root (eg with sudo), try



      chsh -s /bin/bash user


      How you ended up with a shell other than Bash is another matter: perhaps that user was created as a system user or was created by some software directly modifying /etc/passwd instead of the usual adduser command (or even useradd).






      share|improve this answer
























        up vote
        2
        down vote



        accepted







        up vote
        2
        down vote



        accepted






        I would guess you're using different shells. What you see on the left is the default prompt for the Bash shell, and what is on the right might be the system shell: Dash.



        To change your shell to Bash, try logging in as the given user and then:



        chsh -s /bin/bash


        Or as root (eg with sudo), try



        chsh -s /bin/bash user


        How you ended up with a shell other than Bash is another matter: perhaps that user was created as a system user or was created by some software directly modifying /etc/passwd instead of the usual adduser command (or even useradd).






        share|improve this answer














        I would guess you're using different shells. What you see on the left is the default prompt for the Bash shell, and what is on the right might be the system shell: Dash.



        To change your shell to Bash, try logging in as the given user and then:



        chsh -s /bin/bash


        Or as root (eg with sudo), try



        chsh -s /bin/bash user


        How you ended up with a shell other than Bash is another matter: perhaps that user was created as a system user or was created by some software directly modifying /etc/passwd instead of the usual adduser command (or even useradd).







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Feb 7 at 2:07

























        answered Feb 7 at 2:05









        thomasrutter

        25.4k46086




        25.4k46086



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1003730%2fubuntu-remote-login-different-shells%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Unable to execute new pre-installation script (/var/lib/dpkg/tmp.ci/preinst)

            Running the scala interactive shell from the command line

            Do not install recommended packages of dependencies