Automount LDAP home folders in client machines

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





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
0
down vote

favorite












I have created couple of users on my ldap, and setup a couple of ubuntu ldap client machines, where users can login with their accounts. I now want to share their home folders and make it centralised in all the client machines. Below are the steps I did:



On the LDAP server machine




  1. I installed the nfs server package:



    apt-get install nfs-kernel-server



  2. On my ldap server the home folders are saved in /home/users folder, so I created a folder on the machine server and named it /home/users



  3. I modified /etc/exports to export home directories on LDAP server to client by adding this line:



    /home/users *(rw,no_root_squash,no_subtree_check,no_wdelay,sync)



On the LDAP client machine




  1. I install the client nfs software:



    apt-get install nfs-common



  2. I created a folder and named it /home/users to match the ones of the ldap server and server machine



  3. I modified /etc/fstab and added the below to make it mounted automatically:



    192.168.1.10:/home/users /home/users nfs _netdev,auto,hard,intr 0 4



I restarted the machines (both server and clients) to see the effect, but still the home directory of the users are not synchronised, they are totally separate, like on the server machines there is nothing in the /home/users directory, but in the client machines there are folders with the user names in /home/users but they don't have the same data.



I wonder how to make the home folders of my users centralised so that updates are synched across the machines? So that when a user logins in with his account from any machine he can see that his home folder is the same and that his files and folders are there. Any advice please?







share|improve this question

























    up vote
    0
    down vote

    favorite












    I have created couple of users on my ldap, and setup a couple of ubuntu ldap client machines, where users can login with their accounts. I now want to share their home folders and make it centralised in all the client machines. Below are the steps I did:



    On the LDAP server machine




    1. I installed the nfs server package:



      apt-get install nfs-kernel-server



    2. On my ldap server the home folders are saved in /home/users folder, so I created a folder on the machine server and named it /home/users



    3. I modified /etc/exports to export home directories on LDAP server to client by adding this line:



      /home/users *(rw,no_root_squash,no_subtree_check,no_wdelay,sync)



    On the LDAP client machine




    1. I install the client nfs software:



      apt-get install nfs-common



    2. I created a folder and named it /home/users to match the ones of the ldap server and server machine



    3. I modified /etc/fstab and added the below to make it mounted automatically:



      192.168.1.10:/home/users /home/users nfs _netdev,auto,hard,intr 0 4



    I restarted the machines (both server and clients) to see the effect, but still the home directory of the users are not synchronised, they are totally separate, like on the server machines there is nothing in the /home/users directory, but in the client machines there are folders with the user names in /home/users but they don't have the same data.



    I wonder how to make the home folders of my users centralised so that updates are synched across the machines? So that when a user logins in with his account from any machine he can see that his home folder is the same and that his files and folders are there. Any advice please?







    share|improve this question





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have created couple of users on my ldap, and setup a couple of ubuntu ldap client machines, where users can login with their accounts. I now want to share their home folders and make it centralised in all the client machines. Below are the steps I did:



      On the LDAP server machine




      1. I installed the nfs server package:



        apt-get install nfs-kernel-server



      2. On my ldap server the home folders are saved in /home/users folder, so I created a folder on the machine server and named it /home/users



      3. I modified /etc/exports to export home directories on LDAP server to client by adding this line:



        /home/users *(rw,no_root_squash,no_subtree_check,no_wdelay,sync)



      On the LDAP client machine




      1. I install the client nfs software:



        apt-get install nfs-common



      2. I created a folder and named it /home/users to match the ones of the ldap server and server machine



      3. I modified /etc/fstab and added the below to make it mounted automatically:



        192.168.1.10:/home/users /home/users nfs _netdev,auto,hard,intr 0 4



      I restarted the machines (both server and clients) to see the effect, but still the home directory of the users are not synchronised, they are totally separate, like on the server machines there is nothing in the /home/users directory, but in the client machines there are folders with the user names in /home/users but they don't have the same data.



      I wonder how to make the home folders of my users centralised so that updates are synched across the machines? So that when a user logins in with his account from any machine he can see that his home folder is the same and that his files and folders are there. Any advice please?







      share|improve this question











      I have created couple of users on my ldap, and setup a couple of ubuntu ldap client machines, where users can login with their accounts. I now want to share their home folders and make it centralised in all the client machines. Below are the steps I did:



      On the LDAP server machine




      1. I installed the nfs server package:



        apt-get install nfs-kernel-server



      2. On my ldap server the home folders are saved in /home/users folder, so I created a folder on the machine server and named it /home/users



      3. I modified /etc/exports to export home directories on LDAP server to client by adding this line:



        /home/users *(rw,no_root_squash,no_subtree_check,no_wdelay,sync)



      On the LDAP client machine




      1. I install the client nfs software:



        apt-get install nfs-common



      2. I created a folder and named it /home/users to match the ones of the ldap server and server machine



      3. I modified /etc/fstab and added the below to make it mounted automatically:



        192.168.1.10:/home/users /home/users nfs _netdev,auto,hard,intr 0 4



      I restarted the machines (both server and clients) to see the effect, but still the home directory of the users are not synchronised, they are totally separate, like on the server machines there is nothing in the /home/users directory, but in the client machines there are folders with the user names in /home/users but they don't have the same data.



      I wonder how to make the home folders of my users centralised so that updates are synched across the machines? So that when a user logins in with his account from any machine he can see that his home folder is the same and that his files and folders are there. Any advice please?









      share|improve this question










      share|improve this question




      share|improve this question









      asked Jul 20 at 7:27









      Tak

      261413




      261413

























          active

          oldest

          votes











          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%2f457359%2fautomount-ldap-home-folders-in-client-machines%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f457359%2fautomount-ldap-home-folders-in-client-machines%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)