AutoFS with nfs does not show files in mount point












0















I tried to practice on autofs and something do not work as excepted.
I have the following Scenario :



Debian NFS SERVER : 192.168.1.32
Centos7 nfs Client: 192.168.1.99



/etc/exports on NFS SERVER :



/var/nfs/public 192.168.1.0/24(rw,no_root_squash)


/etc/auto.master on Centos7 Client:



/pub /etc/auto.nfsdb


/etc/auto.nfsdb:



* -rw 192.168.1.32:/var/nfs/public


Service is on , can access to the /pub folder on the Client, but can not write to her or even when i do ls -l on the files on the directory , nothing is show.



[root@localhost pub]# ls -l
total 0

[root@localhost pub]# mkdir 1
mkdir: cannot create directory ג€˜1ג€™: Permission denied


/var/log/message :



Mar 4 06:43:36 localhost automount: master_do_mount: mounting /net
Mar 4 06:43:36 localhost automount: automount_path_to_fifo: fifo name /run/autofs.fifo-net
Mar 4 06:43:36 localhost automount: lookup_nss_read_map: reading map hosts (null)
Mar 4 06:43:36 localhost automount: do_init: parse(sun): init gathered global options: (null)
Mar 4 06:43:36 localhost automount: lookup_read_map: lookup(hosts): read hosts map
Mar 4 06:43:36 localhost automount: lookup_read_map: lookup(hosts): map not browsable, update existing host entries only
Mar 4 06:43:36 localhost automount: mounted indirect on /net with timeout 300, freq 75 seconds
Mar 4 06:43:36 localhost automount: st_ready: st_ready(): state = 0 path /net
Mar 4 06:43:36 localhost automount: master_do_mount: mounting /pub
Mar 4 06:43:36 localhost automount: automount_path_to_fifo: fifo name /run/autofs.fifo-pub
Mar 4 06:43:36 localhost automount: lookup_nss_read_map: reading map file /etc/auto.nfsdb
Mar 4 06:43:36 localhost automount: do_init: parse(sun): init gathered global options: (null)
Mar 4 06:43:36 localhost automount: mounted indirect on /pub with timeout 300, freq 75 seconds
Mar 4 06:43:36 localhost automount: st_ready: st_ready(): state = 0 path /pub
Mar 4 06:43:36 localhost systemd: Started Automounts filesystems on demand.


nsswitch.conf :



automount: files nis nisplus sss









share|improve this question





























    0















    I tried to practice on autofs and something do not work as excepted.
    I have the following Scenario :



    Debian NFS SERVER : 192.168.1.32
    Centos7 nfs Client: 192.168.1.99



    /etc/exports on NFS SERVER :



    /var/nfs/public 192.168.1.0/24(rw,no_root_squash)


    /etc/auto.master on Centos7 Client:



    /pub /etc/auto.nfsdb


    /etc/auto.nfsdb:



    * -rw 192.168.1.32:/var/nfs/public


    Service is on , can access to the /pub folder on the Client, but can not write to her or even when i do ls -l on the files on the directory , nothing is show.



    [root@localhost pub]# ls -l
    total 0

    [root@localhost pub]# mkdir 1
    mkdir: cannot create directory ג€˜1ג€™: Permission denied


    /var/log/message :



    Mar 4 06:43:36 localhost automount: master_do_mount: mounting /net
    Mar 4 06:43:36 localhost automount: automount_path_to_fifo: fifo name /run/autofs.fifo-net
    Mar 4 06:43:36 localhost automount: lookup_nss_read_map: reading map hosts (null)
    Mar 4 06:43:36 localhost automount: do_init: parse(sun): init gathered global options: (null)
    Mar 4 06:43:36 localhost automount: lookup_read_map: lookup(hosts): read hosts map
    Mar 4 06:43:36 localhost automount: lookup_read_map: lookup(hosts): map not browsable, update existing host entries only
    Mar 4 06:43:36 localhost automount: mounted indirect on /net with timeout 300, freq 75 seconds
    Mar 4 06:43:36 localhost automount: st_ready: st_ready(): state = 0 path /net
    Mar 4 06:43:36 localhost automount: master_do_mount: mounting /pub
    Mar 4 06:43:36 localhost automount: automount_path_to_fifo: fifo name /run/autofs.fifo-pub
    Mar 4 06:43:36 localhost automount: lookup_nss_read_map: reading map file /etc/auto.nfsdb
    Mar 4 06:43:36 localhost automount: do_init: parse(sun): init gathered global options: (null)
    Mar 4 06:43:36 localhost automount: mounted indirect on /pub with timeout 300, freq 75 seconds
    Mar 4 06:43:36 localhost automount: st_ready: st_ready(): state = 0 path /pub
    Mar 4 06:43:36 localhost systemd: Started Automounts filesystems on demand.


    nsswitch.conf :



    automount: files nis nisplus sss









    share|improve this question



























      0












      0








      0








      I tried to practice on autofs and something do not work as excepted.
      I have the following Scenario :



      Debian NFS SERVER : 192.168.1.32
      Centos7 nfs Client: 192.168.1.99



      /etc/exports on NFS SERVER :



      /var/nfs/public 192.168.1.0/24(rw,no_root_squash)


      /etc/auto.master on Centos7 Client:



      /pub /etc/auto.nfsdb


      /etc/auto.nfsdb:



      * -rw 192.168.1.32:/var/nfs/public


      Service is on , can access to the /pub folder on the Client, but can not write to her or even when i do ls -l on the files on the directory , nothing is show.



      [root@localhost pub]# ls -l
      total 0

      [root@localhost pub]# mkdir 1
      mkdir: cannot create directory ג€˜1ג€™: Permission denied


      /var/log/message :



      Mar 4 06:43:36 localhost automount: master_do_mount: mounting /net
      Mar 4 06:43:36 localhost automount: automount_path_to_fifo: fifo name /run/autofs.fifo-net
      Mar 4 06:43:36 localhost automount: lookup_nss_read_map: reading map hosts (null)
      Mar 4 06:43:36 localhost automount: do_init: parse(sun): init gathered global options: (null)
      Mar 4 06:43:36 localhost automount: lookup_read_map: lookup(hosts): read hosts map
      Mar 4 06:43:36 localhost automount: lookup_read_map: lookup(hosts): map not browsable, update existing host entries only
      Mar 4 06:43:36 localhost automount: mounted indirect on /net with timeout 300, freq 75 seconds
      Mar 4 06:43:36 localhost automount: st_ready: st_ready(): state = 0 path /net
      Mar 4 06:43:36 localhost automount: master_do_mount: mounting /pub
      Mar 4 06:43:36 localhost automount: automount_path_to_fifo: fifo name /run/autofs.fifo-pub
      Mar 4 06:43:36 localhost automount: lookup_nss_read_map: reading map file /etc/auto.nfsdb
      Mar 4 06:43:36 localhost automount: do_init: parse(sun): init gathered global options: (null)
      Mar 4 06:43:36 localhost automount: mounted indirect on /pub with timeout 300, freq 75 seconds
      Mar 4 06:43:36 localhost automount: st_ready: st_ready(): state = 0 path /pub
      Mar 4 06:43:36 localhost systemd: Started Automounts filesystems on demand.


      nsswitch.conf :



      automount: files nis nisplus sss









      share|improve this question
















      I tried to practice on autofs and something do not work as excepted.
      I have the following Scenario :



      Debian NFS SERVER : 192.168.1.32
      Centos7 nfs Client: 192.168.1.99



      /etc/exports on NFS SERVER :



      /var/nfs/public 192.168.1.0/24(rw,no_root_squash)


      /etc/auto.master on Centos7 Client:



      /pub /etc/auto.nfsdb


      /etc/auto.nfsdb:



      * -rw 192.168.1.32:/var/nfs/public


      Service is on , can access to the /pub folder on the Client, but can not write to her or even when i do ls -l on the files on the directory , nothing is show.



      [root@localhost pub]# ls -l
      total 0

      [root@localhost pub]# mkdir 1
      mkdir: cannot create directory ג€˜1ג€™: Permission denied


      /var/log/message :



      Mar 4 06:43:36 localhost automount: master_do_mount: mounting /net
      Mar 4 06:43:36 localhost automount: automount_path_to_fifo: fifo name /run/autofs.fifo-net
      Mar 4 06:43:36 localhost automount: lookup_nss_read_map: reading map hosts (null)
      Mar 4 06:43:36 localhost automount: do_init: parse(sun): init gathered global options: (null)
      Mar 4 06:43:36 localhost automount: lookup_read_map: lookup(hosts): read hosts map
      Mar 4 06:43:36 localhost automount: lookup_read_map: lookup(hosts): map not browsable, update existing host entries only
      Mar 4 06:43:36 localhost automount: mounted indirect on /net with timeout 300, freq 75 seconds
      Mar 4 06:43:36 localhost automount: st_ready: st_ready(): state = 0 path /net
      Mar 4 06:43:36 localhost automount: master_do_mount: mounting /pub
      Mar 4 06:43:36 localhost automount: automount_path_to_fifo: fifo name /run/autofs.fifo-pub
      Mar 4 06:43:36 localhost automount: lookup_nss_read_map: reading map file /etc/auto.nfsdb
      Mar 4 06:43:36 localhost automount: do_init: parse(sun): init gathered global options: (null)
      Mar 4 06:43:36 localhost automount: mounted indirect on /pub with timeout 300, freq 75 seconds
      Mar 4 06:43:36 localhost automount: st_ready: st_ready(): state = 0 path /pub
      Mar 4 06:43:36 localhost systemd: Started Automounts filesystems on demand.


      nsswitch.conf :



      automount: files nis nisplus sss






      linux nfs autofs






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 5 at 13:07









      Jeff Schaller

      44.1k1161142




      44.1k1161142










      asked Mar 5 at 10:43









      AntonioAntonio

      112




      112






















          0






          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',
          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%2f504461%2fautofs-with-nfs-does-not-show-files-in-mount-point%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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%2f504461%2fautofs-with-nfs-does-not-show-files-in-mount-point%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 make a Squid Proxy server?

          Is this a new Fibonacci Identity?

          19世紀