Difference between “/export/home” and “/home”

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











up vote
6
down vote

favorite












In our UNIX machine my home path looks like /home/<userid> and we have another batch user whose home looks like /export/home/<userid>



I want to know what's the difference between /export/home/<userid> and /home/<userid>?



Why there are difference in folders when both are some user in UNIX?










share|improve this question



























    up vote
    6
    down vote

    favorite












    In our UNIX machine my home path looks like /home/<userid> and we have another batch user whose home looks like /export/home/<userid>



    I want to know what's the difference between /export/home/<userid> and /home/<userid>?



    Why there are difference in folders when both are some user in UNIX?










    share|improve this question

























      up vote
      6
      down vote

      favorite









      up vote
      6
      down vote

      favorite











      In our UNIX machine my home path looks like /home/<userid> and we have another batch user whose home looks like /export/home/<userid>



      I want to know what's the difference between /export/home/<userid> and /home/<userid>?



      Why there are difference in folders when both are some user in UNIX?










      share|improve this question















      In our UNIX machine my home path looks like /home/<userid> and we have another batch user whose home looks like /export/home/<userid>



      I want to know what's the difference between /export/home/<userid> and /home/<userid>?



      Why there are difference in folders when both are some user in UNIX?







      solaris nfs directory-structure home






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 21 '16 at 0:56









      Jeff Schaller

      32.4k849110




      32.4k849110










      asked Apr 20 '11 at 10:11









      Vivek

      133114




      133114




















          5 Answers
          5






          active

          oldest

          votes

















          up vote
          6
          down vote



          accepted










          As Noufal Ibrahim says, I think this is a Solaris convention.



          IIRC, /export/home is used on the server where the actual files live, and /home is where the other servers mount it.



          What does mount | grep home say? I'm guessing that /export/home has a file system type of UFS, and /home has a type of NFS?



          /etc/fstab may also have some clues.






          share|improve this answer




















          • /home should be used on the NFS server too. The automounter should manage the mapping there too.
            – jlliagre
            Apr 21 '11 at 9:54

















          up vote
          4
          down vote













          The idea was/is that /export/home is for a physical locally stored home directory. The word 'export' is from the idea that this home directory could be exported to be used from other hosts as well.



          /home on the other hand would the logical mount for your home directory. You should never physically create home directories in /home. It is a place for mounts.



          Suppose I have an account on 5 different Solaris hosts. Surely I would like to have only one physical home directory across all those hosts. If the automounter is correctly configured then I would on all 5 hosts see my home directory in /home but that is really just a logical mirror. There would probably be one of the 5 hosts that would hold my physical home directory and on that particular host I would also see my home directory in /export/home.



          If your home directory is always locally stored on the machine then you'll always see /export/home.



          Too few sites actually centralize home directories in my opinion. But Sun's idea was to use a layout that made such sharing easy and consistent from one host to another. Rarely used and this is the reason that people wonder what it was for.



          (Footnote: It was actually only recently, with Solaris 11, that this was made fully consistent so that a user can always see his home directory in /home no matter if the home directory is locally stored in /export/home. This change will make it easier for people from the Linux camp to understand)






          share|improve this answer





























            up vote
            3
            down vote













            I've seen the /export/home layout on old Solaris machines that I've used and it was a convention indicating that the partition was exported via. NFS. This is not something that's listed in the FHS so I don't know how "standard" it is really.






            share|improve this answer



























              up vote
              2
              down vote













              Having a home directory being /export/home/username is a configuration oddity. The actual directory is located by default here when the user account is created by the useradd command but this directory should nevertheless be accessed through /home/username.



              The convention and best practice is then to have /home/username being the home directory and configuring the automounter to manage the mapping between both.



              By default the automounter master configuration file /etc/auto_master contains this line:



              /home auto_home -nobrowse


              That means /home is handled by the automounter. As a consequence, no directory can be directly created there which is a common source of frustration for novice administrators on Solaris.



              The /home directory is configured in the /etc/auto_home file. It tells the automounter where to find the actual directory to mount under /home.



              For example:



              vivek nfsserver:/export/home/&


              tells that vivek's home directory is to be found on nfsserver under the /export/home/vivek share.



              Locally mounted home directories can be configured that way:



              username localhost:/export/home/&


              When the automounter detects the file server is local, it uses lofs instead of nfs for performance reasons. These kinds of home directory mounts can also be used with Solaris zones.



              Reference: http://www.c0t0d0s0.org/archives/4120-Less-known-Solaris-Features-exporthome-home-autofs.html






              share|improve this answer






















              • @sunman You are free to disagree with any answer but it is not something to be done by editing and substantially changing them. Either post a comment explaining the issue you have with that answer, or add your own answer, or vote up the one you agree with, if any.
                – jlliagre
                Jan 11 '17 at 17:31

















              up vote
              0
              down vote













              When you create a zone, home directory will be /export/home, so you can use ZFS to protect user's data.






              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',
                convertImagesToLinks: false,
                noModals: false,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: null,
                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%2funix.stackexchange.com%2fquestions%2f11685%2fdifference-between-export-home-and-home%23new-answer', 'question_page');

                );

                Post as a guest






























                5 Answers
                5






                active

                oldest

                votes








                5 Answers
                5






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes








                up vote
                6
                down vote



                accepted










                As Noufal Ibrahim says, I think this is a Solaris convention.



                IIRC, /export/home is used on the server where the actual files live, and /home is where the other servers mount it.



                What does mount | grep home say? I'm guessing that /export/home has a file system type of UFS, and /home has a type of NFS?



                /etc/fstab may also have some clues.






                share|improve this answer




















                • /home should be used on the NFS server too. The automounter should manage the mapping there too.
                  – jlliagre
                  Apr 21 '11 at 9:54














                up vote
                6
                down vote



                accepted










                As Noufal Ibrahim says, I think this is a Solaris convention.



                IIRC, /export/home is used on the server where the actual files live, and /home is where the other servers mount it.



                What does mount | grep home say? I'm guessing that /export/home has a file system type of UFS, and /home has a type of NFS?



                /etc/fstab may also have some clues.






                share|improve this answer




















                • /home should be used on the NFS server too. The automounter should manage the mapping there too.
                  – jlliagre
                  Apr 21 '11 at 9:54












                up vote
                6
                down vote



                accepted







                up vote
                6
                down vote



                accepted






                As Noufal Ibrahim says, I think this is a Solaris convention.



                IIRC, /export/home is used on the server where the actual files live, and /home is where the other servers mount it.



                What does mount | grep home say? I'm guessing that /export/home has a file system type of UFS, and /home has a type of NFS?



                /etc/fstab may also have some clues.






                share|improve this answer












                As Noufal Ibrahim says, I think this is a Solaris convention.



                IIRC, /export/home is used on the server where the actual files live, and /home is where the other servers mount it.



                What does mount | grep home say? I'm guessing that /export/home has a file system type of UFS, and /home has a type of NFS?



                /etc/fstab may also have some clues.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 20 '11 at 10:22









                Mikel

                37.8k996121




                37.8k996121











                • /home should be used on the NFS server too. The automounter should manage the mapping there too.
                  – jlliagre
                  Apr 21 '11 at 9:54
















                • /home should be used on the NFS server too. The automounter should manage the mapping there too.
                  – jlliagre
                  Apr 21 '11 at 9:54















                /home should be used on the NFS server too. The automounter should manage the mapping there too.
                – jlliagre
                Apr 21 '11 at 9:54




                /home should be used on the NFS server too. The automounter should manage the mapping there too.
                – jlliagre
                Apr 21 '11 at 9:54












                up vote
                4
                down vote













                The idea was/is that /export/home is for a physical locally stored home directory. The word 'export' is from the idea that this home directory could be exported to be used from other hosts as well.



                /home on the other hand would the logical mount for your home directory. You should never physically create home directories in /home. It is a place for mounts.



                Suppose I have an account on 5 different Solaris hosts. Surely I would like to have only one physical home directory across all those hosts. If the automounter is correctly configured then I would on all 5 hosts see my home directory in /home but that is really just a logical mirror. There would probably be one of the 5 hosts that would hold my physical home directory and on that particular host I would also see my home directory in /export/home.



                If your home directory is always locally stored on the machine then you'll always see /export/home.



                Too few sites actually centralize home directories in my opinion. But Sun's idea was to use a layout that made such sharing easy and consistent from one host to another. Rarely used and this is the reason that people wonder what it was for.



                (Footnote: It was actually only recently, with Solaris 11, that this was made fully consistent so that a user can always see his home directory in /home no matter if the home directory is locally stored in /export/home. This change will make it easier for people from the Linux camp to understand)






                share|improve this answer


























                  up vote
                  4
                  down vote













                  The idea was/is that /export/home is for a physical locally stored home directory. The word 'export' is from the idea that this home directory could be exported to be used from other hosts as well.



                  /home on the other hand would the logical mount for your home directory. You should never physically create home directories in /home. It is a place for mounts.



                  Suppose I have an account on 5 different Solaris hosts. Surely I would like to have only one physical home directory across all those hosts. If the automounter is correctly configured then I would on all 5 hosts see my home directory in /home but that is really just a logical mirror. There would probably be one of the 5 hosts that would hold my physical home directory and on that particular host I would also see my home directory in /export/home.



                  If your home directory is always locally stored on the machine then you'll always see /export/home.



                  Too few sites actually centralize home directories in my opinion. But Sun's idea was to use a layout that made such sharing easy and consistent from one host to another. Rarely used and this is the reason that people wonder what it was for.



                  (Footnote: It was actually only recently, with Solaris 11, that this was made fully consistent so that a user can always see his home directory in /home no matter if the home directory is locally stored in /export/home. This change will make it easier for people from the Linux camp to understand)






                  share|improve this answer
























                    up vote
                    4
                    down vote










                    up vote
                    4
                    down vote









                    The idea was/is that /export/home is for a physical locally stored home directory. The word 'export' is from the idea that this home directory could be exported to be used from other hosts as well.



                    /home on the other hand would the logical mount for your home directory. You should never physically create home directories in /home. It is a place for mounts.



                    Suppose I have an account on 5 different Solaris hosts. Surely I would like to have only one physical home directory across all those hosts. If the automounter is correctly configured then I would on all 5 hosts see my home directory in /home but that is really just a logical mirror. There would probably be one of the 5 hosts that would hold my physical home directory and on that particular host I would also see my home directory in /export/home.



                    If your home directory is always locally stored on the machine then you'll always see /export/home.



                    Too few sites actually centralize home directories in my opinion. But Sun's idea was to use a layout that made such sharing easy and consistent from one host to another. Rarely used and this is the reason that people wonder what it was for.



                    (Footnote: It was actually only recently, with Solaris 11, that this was made fully consistent so that a user can always see his home directory in /home no matter if the home directory is locally stored in /export/home. This change will make it easier for people from the Linux camp to understand)






                    share|improve this answer














                    The idea was/is that /export/home is for a physical locally stored home directory. The word 'export' is from the idea that this home directory could be exported to be used from other hosts as well.



                    /home on the other hand would the logical mount for your home directory. You should never physically create home directories in /home. It is a place for mounts.



                    Suppose I have an account on 5 different Solaris hosts. Surely I would like to have only one physical home directory across all those hosts. If the automounter is correctly configured then I would on all 5 hosts see my home directory in /home but that is really just a logical mirror. There would probably be one of the 5 hosts that would hold my physical home directory and on that particular host I would also see my home directory in /export/home.



                    If your home directory is always locally stored on the machine then you'll always see /export/home.



                    Too few sites actually centralize home directories in my opinion. But Sun's idea was to use a layout that made such sharing easy and consistent from one host to another. Rarely used and this is the reason that people wonder what it was for.



                    (Footnote: It was actually only recently, with Solaris 11, that this was made fully consistent so that a user can always see his home directory in /home no matter if the home directory is locally stored in /export/home. This change will make it easier for people from the Linux camp to understand)







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Jul 24 '13 at 22:13

























                    answered Jul 24 '13 at 22:05









                    unixhacker2010

                    35228




                    35228




















                        up vote
                        3
                        down vote













                        I've seen the /export/home layout on old Solaris machines that I've used and it was a convention indicating that the partition was exported via. NFS. This is not something that's listed in the FHS so I don't know how "standard" it is really.






                        share|improve this answer
























                          up vote
                          3
                          down vote













                          I've seen the /export/home layout on old Solaris machines that I've used and it was a convention indicating that the partition was exported via. NFS. This is not something that's listed in the FHS so I don't know how "standard" it is really.






                          share|improve this answer






















                            up vote
                            3
                            down vote










                            up vote
                            3
                            down vote









                            I've seen the /export/home layout on old Solaris machines that I've used and it was a convention indicating that the partition was exported via. NFS. This is not something that's listed in the FHS so I don't know how "standard" it is really.






                            share|improve this answer












                            I've seen the /export/home layout on old Solaris machines that I've used and it was a convention indicating that the partition was exported via. NFS. This is not something that's listed in the FHS so I don't know how "standard" it is really.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Apr 20 '11 at 10:18









                            Noufal Ibrahim

                            1904




                            1904




















                                up vote
                                2
                                down vote













                                Having a home directory being /export/home/username is a configuration oddity. The actual directory is located by default here when the user account is created by the useradd command but this directory should nevertheless be accessed through /home/username.



                                The convention and best practice is then to have /home/username being the home directory and configuring the automounter to manage the mapping between both.



                                By default the automounter master configuration file /etc/auto_master contains this line:



                                /home auto_home -nobrowse


                                That means /home is handled by the automounter. As a consequence, no directory can be directly created there which is a common source of frustration for novice administrators on Solaris.



                                The /home directory is configured in the /etc/auto_home file. It tells the automounter where to find the actual directory to mount under /home.



                                For example:



                                vivek nfsserver:/export/home/&


                                tells that vivek's home directory is to be found on nfsserver under the /export/home/vivek share.



                                Locally mounted home directories can be configured that way:



                                username localhost:/export/home/&


                                When the automounter detects the file server is local, it uses lofs instead of nfs for performance reasons. These kinds of home directory mounts can also be used with Solaris zones.



                                Reference: http://www.c0t0d0s0.org/archives/4120-Less-known-Solaris-Features-exporthome-home-autofs.html






                                share|improve this answer






















                                • @sunman You are free to disagree with any answer but it is not something to be done by editing and substantially changing them. Either post a comment explaining the issue you have with that answer, or add your own answer, or vote up the one you agree with, if any.
                                  – jlliagre
                                  Jan 11 '17 at 17:31














                                up vote
                                2
                                down vote













                                Having a home directory being /export/home/username is a configuration oddity. The actual directory is located by default here when the user account is created by the useradd command but this directory should nevertheless be accessed through /home/username.



                                The convention and best practice is then to have /home/username being the home directory and configuring the automounter to manage the mapping between both.



                                By default the automounter master configuration file /etc/auto_master contains this line:



                                /home auto_home -nobrowse


                                That means /home is handled by the automounter. As a consequence, no directory can be directly created there which is a common source of frustration for novice administrators on Solaris.



                                The /home directory is configured in the /etc/auto_home file. It tells the automounter where to find the actual directory to mount under /home.



                                For example:



                                vivek nfsserver:/export/home/&


                                tells that vivek's home directory is to be found on nfsserver under the /export/home/vivek share.



                                Locally mounted home directories can be configured that way:



                                username localhost:/export/home/&


                                When the automounter detects the file server is local, it uses lofs instead of nfs for performance reasons. These kinds of home directory mounts can also be used with Solaris zones.



                                Reference: http://www.c0t0d0s0.org/archives/4120-Less-known-Solaris-Features-exporthome-home-autofs.html






                                share|improve this answer






















                                • @sunman You are free to disagree with any answer but it is not something to be done by editing and substantially changing them. Either post a comment explaining the issue you have with that answer, or add your own answer, or vote up the one you agree with, if any.
                                  – jlliagre
                                  Jan 11 '17 at 17:31












                                up vote
                                2
                                down vote










                                up vote
                                2
                                down vote









                                Having a home directory being /export/home/username is a configuration oddity. The actual directory is located by default here when the user account is created by the useradd command but this directory should nevertheless be accessed through /home/username.



                                The convention and best practice is then to have /home/username being the home directory and configuring the automounter to manage the mapping between both.



                                By default the automounter master configuration file /etc/auto_master contains this line:



                                /home auto_home -nobrowse


                                That means /home is handled by the automounter. As a consequence, no directory can be directly created there which is a common source of frustration for novice administrators on Solaris.



                                The /home directory is configured in the /etc/auto_home file. It tells the automounter where to find the actual directory to mount under /home.



                                For example:



                                vivek nfsserver:/export/home/&


                                tells that vivek's home directory is to be found on nfsserver under the /export/home/vivek share.



                                Locally mounted home directories can be configured that way:



                                username localhost:/export/home/&


                                When the automounter detects the file server is local, it uses lofs instead of nfs for performance reasons. These kinds of home directory mounts can also be used with Solaris zones.



                                Reference: http://www.c0t0d0s0.org/archives/4120-Less-known-Solaris-Features-exporthome-home-autofs.html






                                share|improve this answer














                                Having a home directory being /export/home/username is a configuration oddity. The actual directory is located by default here when the user account is created by the useradd command but this directory should nevertheless be accessed through /home/username.



                                The convention and best practice is then to have /home/username being the home directory and configuring the automounter to manage the mapping between both.



                                By default the automounter master configuration file /etc/auto_master contains this line:



                                /home auto_home -nobrowse


                                That means /home is handled by the automounter. As a consequence, no directory can be directly created there which is a common source of frustration for novice administrators on Solaris.



                                The /home directory is configured in the /etc/auto_home file. It tells the automounter where to find the actual directory to mount under /home.



                                For example:



                                vivek nfsserver:/export/home/&


                                tells that vivek's home directory is to be found on nfsserver under the /export/home/vivek share.



                                Locally mounted home directories can be configured that way:



                                username localhost:/export/home/&


                                When the automounter detects the file server is local, it uses lofs instead of nfs for performance reasons. These kinds of home directory mounts can also be used with Solaris zones.



                                Reference: http://www.c0t0d0s0.org/archives/4120-Less-known-Solaris-Features-exporthome-home-autofs.html







                                share|improve this answer














                                share|improve this answer



                                share|improve this answer








                                edited Jan 11 '17 at 17:36

























                                answered Apr 20 '11 at 15:44









                                jlliagre

                                45.1k578124




                                45.1k578124











                                • @sunman You are free to disagree with any answer but it is not something to be done by editing and substantially changing them. Either post a comment explaining the issue you have with that answer, or add your own answer, or vote up the one you agree with, if any.
                                  – jlliagre
                                  Jan 11 '17 at 17:31
















                                • @sunman You are free to disagree with any answer but it is not something to be done by editing and substantially changing them. Either post a comment explaining the issue you have with that answer, or add your own answer, or vote up the one you agree with, if any.
                                  – jlliagre
                                  Jan 11 '17 at 17:31















                                @sunman You are free to disagree with any answer but it is not something to be done by editing and substantially changing them. Either post a comment explaining the issue you have with that answer, or add your own answer, or vote up the one you agree with, if any.
                                – jlliagre
                                Jan 11 '17 at 17:31




                                @sunman You are free to disagree with any answer but it is not something to be done by editing and substantially changing them. Either post a comment explaining the issue you have with that answer, or add your own answer, or vote up the one you agree with, if any.
                                – jlliagre
                                Jan 11 '17 at 17:31










                                up vote
                                0
                                down vote













                                When you create a zone, home directory will be /export/home, so you can use ZFS to protect user's data.






                                share|improve this answer
























                                  up vote
                                  0
                                  down vote













                                  When you create a zone, home directory will be /export/home, so you can use ZFS to protect user's data.






                                  share|improve this answer






















                                    up vote
                                    0
                                    down vote










                                    up vote
                                    0
                                    down vote









                                    When you create a zone, home directory will be /export/home, so you can use ZFS to protect user's data.






                                    share|improve this answer












                                    When you create a zone, home directory will be /export/home, so you can use ZFS to protect user's data.







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Dec 5 '14 at 17:50









                                    mike

                                    1




                                    1



























                                         

                                        draft saved


                                        draft discarded















































                                         


                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function ()
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f11685%2fdifference-between-export-home-and-home%23new-answer', 'question_page');

                                        );

                                        Post as a guest













































































                                        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