Tab and prompt only has $

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








up vote
0
down vote

favorite












in our organisation we have ubuntu systems in domain, due to which we are not able to get the username and hostname in the command prompt instead it just shows the "$" sign when i open the command prompt, also tab does not work for all teh commands in ubuntu.



Moreover, when i do sudo su, tab and also command prompt comes.



How to get the username@hostname and tab working in the normal user mode



Thank You in advance.










share|improve this question





















  • The prompt is kept in the PS1 environment variable. Read man bash, especially the PROMPTING section - it tells you all the things you can have in your prompt.
    – waltinator
    Mar 19 at 14:21






  • 4




    Are you sure the user configuration on the domain server has bash as the users' login shell (rather than sh)?
    – steeldriver
    Mar 19 at 14:26










  • @waltinator you assume that the default for users via Samba / domain auth is actually Bash. If you don't define the shell to be /bin/bash with useradd it sets it to Dash, which is just the $ prompt and tab completion-less. If bash isn't set, /bin/sh is the fallback, and that's actually dash
    – Thomas Ward♦
    Mar 19 at 14:26











  • @askubuntu.com/users/10616/thomas-ward I assume a POSIX shell - PS1 is in the POSIX Shell Standard.
    – waltinator
    Mar 19 at 14:32










  • @steeldriver: not sure for this ! do you have any steps to check for that? Currently i go on sudo su, the shell i am getting is /bin/bash but in non-rooted environment it is /bin/sh.
    – user2041875
    Mar 20 at 7:36














up vote
0
down vote

favorite












in our organisation we have ubuntu systems in domain, due to which we are not able to get the username and hostname in the command prompt instead it just shows the "$" sign when i open the command prompt, also tab does not work for all teh commands in ubuntu.



Moreover, when i do sudo su, tab and also command prompt comes.



How to get the username@hostname and tab working in the normal user mode



Thank You in advance.










share|improve this question





















  • The prompt is kept in the PS1 environment variable. Read man bash, especially the PROMPTING section - it tells you all the things you can have in your prompt.
    – waltinator
    Mar 19 at 14:21






  • 4




    Are you sure the user configuration on the domain server has bash as the users' login shell (rather than sh)?
    – steeldriver
    Mar 19 at 14:26










  • @waltinator you assume that the default for users via Samba / domain auth is actually Bash. If you don't define the shell to be /bin/bash with useradd it sets it to Dash, which is just the $ prompt and tab completion-less. If bash isn't set, /bin/sh is the fallback, and that's actually dash
    – Thomas Ward♦
    Mar 19 at 14:26











  • @askubuntu.com/users/10616/thomas-ward I assume a POSIX shell - PS1 is in the POSIX Shell Standard.
    – waltinator
    Mar 19 at 14:32










  • @steeldriver: not sure for this ! do you have any steps to check for that? Currently i go on sudo su, the shell i am getting is /bin/bash but in non-rooted environment it is /bin/sh.
    – user2041875
    Mar 20 at 7:36












up vote
0
down vote

favorite









up vote
0
down vote

favorite











in our organisation we have ubuntu systems in domain, due to which we are not able to get the username and hostname in the command prompt instead it just shows the "$" sign when i open the command prompt, also tab does not work for all teh commands in ubuntu.



Moreover, when i do sudo su, tab and also command prompt comes.



How to get the username@hostname and tab working in the normal user mode



Thank You in advance.










share|improve this question













in our organisation we have ubuntu systems in domain, due to which we are not able to get the username and hostname in the command prompt instead it just shows the "$" sign when i open the command prompt, also tab does not work for all teh commands in ubuntu.



Moreover, when i do sudo su, tab and also command prompt comes.



How to get the username@hostname and tab working in the normal user mode



Thank You in advance.







16.04 command-line active-directory






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 19 at 14:18









user2041875

62




62











  • The prompt is kept in the PS1 environment variable. Read man bash, especially the PROMPTING section - it tells you all the things you can have in your prompt.
    – waltinator
    Mar 19 at 14:21






  • 4




    Are you sure the user configuration on the domain server has bash as the users' login shell (rather than sh)?
    – steeldriver
    Mar 19 at 14:26










  • @waltinator you assume that the default for users via Samba / domain auth is actually Bash. If you don't define the shell to be /bin/bash with useradd it sets it to Dash, which is just the $ prompt and tab completion-less. If bash isn't set, /bin/sh is the fallback, and that's actually dash
    – Thomas Ward♦
    Mar 19 at 14:26











  • @askubuntu.com/users/10616/thomas-ward I assume a POSIX shell - PS1 is in the POSIX Shell Standard.
    – waltinator
    Mar 19 at 14:32










  • @steeldriver: not sure for this ! do you have any steps to check for that? Currently i go on sudo su, the shell i am getting is /bin/bash but in non-rooted environment it is /bin/sh.
    – user2041875
    Mar 20 at 7:36
















  • The prompt is kept in the PS1 environment variable. Read man bash, especially the PROMPTING section - it tells you all the things you can have in your prompt.
    – waltinator
    Mar 19 at 14:21






  • 4




    Are you sure the user configuration on the domain server has bash as the users' login shell (rather than sh)?
    – steeldriver
    Mar 19 at 14:26










  • @waltinator you assume that the default for users via Samba / domain auth is actually Bash. If you don't define the shell to be /bin/bash with useradd it sets it to Dash, which is just the $ prompt and tab completion-less. If bash isn't set, /bin/sh is the fallback, and that's actually dash
    – Thomas Ward♦
    Mar 19 at 14:26











  • @askubuntu.com/users/10616/thomas-ward I assume a POSIX shell - PS1 is in the POSIX Shell Standard.
    – waltinator
    Mar 19 at 14:32










  • @steeldriver: not sure for this ! do you have any steps to check for that? Currently i go on sudo su, the shell i am getting is /bin/bash but in non-rooted environment it is /bin/sh.
    – user2041875
    Mar 20 at 7:36















The prompt is kept in the PS1 environment variable. Read man bash, especially the PROMPTING section - it tells you all the things you can have in your prompt.
– waltinator
Mar 19 at 14:21




The prompt is kept in the PS1 environment variable. Read man bash, especially the PROMPTING section - it tells you all the things you can have in your prompt.
– waltinator
Mar 19 at 14:21




4




4




Are you sure the user configuration on the domain server has bash as the users' login shell (rather than sh)?
– steeldriver
Mar 19 at 14:26




Are you sure the user configuration on the domain server has bash as the users' login shell (rather than sh)?
– steeldriver
Mar 19 at 14:26












@waltinator you assume that the default for users via Samba / domain auth is actually Bash. If you don't define the shell to be /bin/bash with useradd it sets it to Dash, which is just the $ prompt and tab completion-less. If bash isn't set, /bin/sh is the fallback, and that's actually dash
– Thomas Ward♦
Mar 19 at 14:26





@waltinator you assume that the default for users via Samba / domain auth is actually Bash. If you don't define the shell to be /bin/bash with useradd it sets it to Dash, which is just the $ prompt and tab completion-less. If bash isn't set, /bin/sh is the fallback, and that's actually dash
– Thomas Ward♦
Mar 19 at 14:26













@askubuntu.com/users/10616/thomas-ward I assume a POSIX shell - PS1 is in the POSIX Shell Standard.
– waltinator
Mar 19 at 14:32




@askubuntu.com/users/10616/thomas-ward I assume a POSIX shell - PS1 is in the POSIX Shell Standard.
– waltinator
Mar 19 at 14:32












@steeldriver: not sure for this ! do you have any steps to check for that? Currently i go on sudo su, the shell i am getting is /bin/bash but in non-rooted environment it is /bin/sh.
– user2041875
Mar 20 at 7:36




@steeldriver: not sure for this ! do you have any steps to check for that? Currently i go on sudo su, the shell i am getting is /bin/bash but in non-rooted environment it is /bin/sh.
– user2041875
Mar 20 at 7:36










1 Answer
1






active

oldest

votes

















up vote
0
down vote













edit your /etc/sssd/sssd.conf file to include:



default_shell = /bin/bash
override_shell = /bin/bash





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%2f1017321%2ftab-and-prompt-only-has%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
    0
    down vote













    edit your /etc/sssd/sssd.conf file to include:



    default_shell = /bin/bash
    override_shell = /bin/bash





    share|improve this answer
























      up vote
      0
      down vote













      edit your /etc/sssd/sssd.conf file to include:



      default_shell = /bin/bash
      override_shell = /bin/bash





      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        edit your /etc/sssd/sssd.conf file to include:



        default_shell = /bin/bash
        override_shell = /bin/bash





        share|improve this answer












        edit your /etc/sssd/sssd.conf file to include:



        default_shell = /bin/bash
        override_shell = /bin/bash






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jul 16 at 13:19









        Beth L

        12




        12



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1017321%2ftab-and-prompt-only-has%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491