FreeBSD: How to set Bash as the default shell

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












0















I've used bash shell in all my Linuxes and in Mac OS X. I understand that tcsh is the default shell in FreeBSD. If I were to install bash, how would I make it my default shell?










share|improve this question



















  • 1





    Should we distinguish between the root user and a non-root user?

    – Jeff Schaller
    Feb 16 at 15:37











  • I haven't voted on the question, but it might be worth noting whether you're aware of the chsh / chpass command or not.

    – Jeff Schaller
    Feb 16 at 15:50











  • As with most things, if you read the documentation in the Handbook, you'd have your answer.

    – Rob
    Feb 17 at 12:51















0















I've used bash shell in all my Linuxes and in Mac OS X. I understand that tcsh is the default shell in FreeBSD. If I were to install bash, how would I make it my default shell?










share|improve this question



















  • 1





    Should we distinguish between the root user and a non-root user?

    – Jeff Schaller
    Feb 16 at 15:37











  • I haven't voted on the question, but it might be worth noting whether you're aware of the chsh / chpass command or not.

    – Jeff Schaller
    Feb 16 at 15:50











  • As with most things, if you read the documentation in the Handbook, you'd have your answer.

    – Rob
    Feb 17 at 12:51













0












0








0








I've used bash shell in all my Linuxes and in Mac OS X. I understand that tcsh is the default shell in FreeBSD. If I were to install bash, how would I make it my default shell?










share|improve this question
















I've used bash shell in all my Linuxes and in Mac OS X. I understand that tcsh is the default shell in FreeBSD. If I were to install bash, how would I make it my default shell?







bash shell freebsd defaults






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 16 at 20:05









ilkkachu

61k1098174




61k1098174










asked Feb 16 at 15:31









Steve WrightSteve Wright

173




173







  • 1





    Should we distinguish between the root user and a non-root user?

    – Jeff Schaller
    Feb 16 at 15:37











  • I haven't voted on the question, but it might be worth noting whether you're aware of the chsh / chpass command or not.

    – Jeff Schaller
    Feb 16 at 15:50











  • As with most things, if you read the documentation in the Handbook, you'd have your answer.

    – Rob
    Feb 17 at 12:51












  • 1





    Should we distinguish between the root user and a non-root user?

    – Jeff Schaller
    Feb 16 at 15:37











  • I haven't voted on the question, but it might be worth noting whether you're aware of the chsh / chpass command or not.

    – Jeff Schaller
    Feb 16 at 15:50











  • As with most things, if you read the documentation in the Handbook, you'd have your answer.

    – Rob
    Feb 17 at 12:51







1




1





Should we distinguish between the root user and a non-root user?

– Jeff Schaller
Feb 16 at 15:37





Should we distinguish between the root user and a non-root user?

– Jeff Schaller
Feb 16 at 15:37













I haven't voted on the question, but it might be worth noting whether you're aware of the chsh / chpass command or not.

– Jeff Schaller
Feb 16 at 15:50





I haven't voted on the question, but it might be worth noting whether you're aware of the chsh / chpass command or not.

– Jeff Schaller
Feb 16 at 15:50













As with most things, if you read the documentation in the Handbook, you'd have your answer.

– Rob
Feb 17 at 12:51





As with most things, if you read the documentation in the Handbook, you'd have your answer.

– Rob
Feb 17 at 12:51










3 Answers
3






active

oldest

votes


















3














Changing one's login shell is covered by The FreeBSD Handbook, in the chapter called Shells. It also points to a chapter called Installing Applications: Packages and Ports that will tell you what you need to know for installing bash (installing bash from a FreeBSD package would automatically update /etc/shells).



The steps involved, assuming an otherwise properly set up FreeBSD system, could probably be summarised into



sudo pkg install bash
chsh -s /usr/local/bin/bash





share|improve this answer
































    0














    Yes



    • install bash

    • add it to /etc/shells

    • use chsh to set your new default shell.





    share|improve this answer






























      0














      The is also the pw utility.



      pw usermod <user> -s /usr/local/bin/bash





      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',
        autoActivateHeartbeat: false,
        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
        );



        );













        draft saved

        draft discarded


















        StackExchange.ready(
        function ()
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f501054%2ffreebsd-how-to-set-bash-as-the-default-shell%23new-answer', 'question_page');

        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        3














        Changing one's login shell is covered by The FreeBSD Handbook, in the chapter called Shells. It also points to a chapter called Installing Applications: Packages and Ports that will tell you what you need to know for installing bash (installing bash from a FreeBSD package would automatically update /etc/shells).



        The steps involved, assuming an otherwise properly set up FreeBSD system, could probably be summarised into



        sudo pkg install bash
        chsh -s /usr/local/bin/bash





        share|improve this answer





























          3














          Changing one's login shell is covered by The FreeBSD Handbook, in the chapter called Shells. It also points to a chapter called Installing Applications: Packages and Ports that will tell you what you need to know for installing bash (installing bash from a FreeBSD package would automatically update /etc/shells).



          The steps involved, assuming an otherwise properly set up FreeBSD system, could probably be summarised into



          sudo pkg install bash
          chsh -s /usr/local/bin/bash





          share|improve this answer



























            3












            3








            3







            Changing one's login shell is covered by The FreeBSD Handbook, in the chapter called Shells. It also points to a chapter called Installing Applications: Packages and Ports that will tell you what you need to know for installing bash (installing bash from a FreeBSD package would automatically update /etc/shells).



            The steps involved, assuming an otherwise properly set up FreeBSD system, could probably be summarised into



            sudo pkg install bash
            chsh -s /usr/local/bin/bash





            share|improve this answer















            Changing one's login shell is covered by The FreeBSD Handbook, in the chapter called Shells. It also points to a chapter called Installing Applications: Packages and Ports that will tell you what you need to know for installing bash (installing bash from a FreeBSD package would automatically update /etc/shells).



            The steps involved, assuming an otherwise properly set up FreeBSD system, could probably be summarised into



            sudo pkg install bash
            chsh -s /usr/local/bin/bash






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Feb 17 at 12:55

























            answered Feb 16 at 16:09









            KusalanandaKusalananda

            135k17255421




            135k17255421























                0














                Yes



                • install bash

                • add it to /etc/shells

                • use chsh to set your new default shell.





                share|improve this answer



























                  0














                  Yes



                  • install bash

                  • add it to /etc/shells

                  • use chsh to set your new default shell.





                  share|improve this answer

























                    0












                    0








                    0







                    Yes



                    • install bash

                    • add it to /etc/shells

                    • use chsh to set your new default shell.





                    share|improve this answer













                    Yes



                    • install bash

                    • add it to /etc/shells

                    • use chsh to set your new default shell.






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Feb 16 at 15:56









                    ctrl-alt-delorctrl-alt-delor

                    11.9k42260




                    11.9k42260





















                        0














                        The is also the pw utility.



                        pw usermod <user> -s /usr/local/bin/bash





                        share|improve this answer



























                          0














                          The is also the pw utility.



                          pw usermod <user> -s /usr/local/bin/bash





                          share|improve this answer

























                            0












                            0








                            0







                            The is also the pw utility.



                            pw usermod <user> -s /usr/local/bin/bash





                            share|improve this answer













                            The is also the pw utility.



                            pw usermod <user> -s /usr/local/bin/bash






                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Feb 16 at 19:50









                            Vladimir BotkaVladimir Botka

                            24616




                            24616



























                                draft saved

                                draft discarded
















































                                Thanks for contributing an answer to Unix & Linux Stack Exchange!


                                • 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%2funix.stackexchange.com%2fquestions%2f501054%2ffreebsd-how-to-set-bash-as-the-default-shell%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 to check contact read email or not when send email to Individual?

                                Bahrain

                                Postfix configuration issue with fips on centos 7; mailgun relay