Tab and prompt only has $












0















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 the 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 '18 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 '18 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 '18 at 14:26













  • @askubuntu.com/users/10616/thomas-ward I assume a POSIX shell - PS1 is in the POSIX Shell Standard.

    – waltinator
    Mar 19 '18 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 '18 at 7:36
















0















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 the 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 '18 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 '18 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 '18 at 14:26













  • @askubuntu.com/users/10616/thomas-ward I assume a POSIX shell - PS1 is in the POSIX Shell Standard.

    – waltinator
    Mar 19 '18 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 '18 at 7:36














0












0








0








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 the 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 the 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








edited yesterday









anonymous2

3,35241849




3,35241849










asked Mar 19 '18 at 14:18









user2041875user2041875

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 '18 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 '18 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 '18 at 14:26













  • @askubuntu.com/users/10616/thomas-ward I assume a POSIX shell - PS1 is in the POSIX Shell Standard.

    – waltinator
    Mar 19 '18 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 '18 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 '18 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 '18 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 '18 at 14:26













  • @askubuntu.com/users/10616/thomas-ward I assume a POSIX shell - PS1 is in the POSIX Shell Standard.

    – waltinator
    Mar 19 '18 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 '18 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 '18 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 '18 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 '18 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 '18 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 '18 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 '18 at 14:26















@askubuntu.com/users/10616/thomas-ward I assume a POSIX shell - PS1 is in the POSIX Shell Standard.

– waltinator
Mar 19 '18 at 14:32





@askubuntu.com/users/10616/thomas-ward I assume a POSIX shell - PS1 is in the POSIX Shell Standard.

– waltinator
Mar 19 '18 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 '18 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 '18 at 7:36










1 Answer
1






active

oldest

votes


















0














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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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
    });


    }
    });














    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















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














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



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





    share|improve this answer




























      0














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



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





      share|improve this answer


























        0












        0








        0







        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 '18 at 13:19









        Beth LBeth L

        12




        12






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            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















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How did Captain America manage to do this?

            迪纳利

            南乌拉尔铁路局