Mouting a remote drive with cifs

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











up vote
0
down vote

favorite












I've created a remote mounted drive by adding this to my /etc/fstab:



\192.x.x.xweb /mnt/web cifs username=X,password=X,domain=X


and mounting it with sudo mount /mnt/web (which works perfectly!)



The problem is that I can only mount the drive as root. Running mount /mnt/web (without sudo) results in the error




mount: only root can mount 192.x.x.xweb on /mnt/web




I read this guide that suggests the following syntax




//192.168.1.100/data /media/corpnet cifs username=johnny,domain=sealab,noauto,rw,users 0 0




When I change my entry to use this syntax like this:



\192.x.x.xweb /mnt/web cifs username=X,password=X,domain=X,noauto,rw,users 0 0


and run mount /mnt/web I get




mount.cifs: permission denied: no match for /mnt/web found in /etc/fstab




I then read this question along with it's highest voted answer, but the same error appears.



I have checked that my web folder in the /mnt directory has CHMOD 775, which should be ok.



What could be wrong?










share|improve this question



























    up vote
    0
    down vote

    favorite












    I've created a remote mounted drive by adding this to my /etc/fstab:



    \192.x.x.xweb /mnt/web cifs username=X,password=X,domain=X


    and mounting it with sudo mount /mnt/web (which works perfectly!)



    The problem is that I can only mount the drive as root. Running mount /mnt/web (without sudo) results in the error




    mount: only root can mount 192.x.x.xweb on /mnt/web




    I read this guide that suggests the following syntax




    //192.168.1.100/data /media/corpnet cifs username=johnny,domain=sealab,noauto,rw,users 0 0




    When I change my entry to use this syntax like this:



    \192.x.x.xweb /mnt/web cifs username=X,password=X,domain=X,noauto,rw,users 0 0


    and run mount /mnt/web I get




    mount.cifs: permission denied: no match for /mnt/web found in /etc/fstab




    I then read this question along with it's highest voted answer, but the same error appears.



    I have checked that my web folder in the /mnt directory has CHMOD 775, which should be ok.



    What could be wrong?










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I've created a remote mounted drive by adding this to my /etc/fstab:



      \192.x.x.xweb /mnt/web cifs username=X,password=X,domain=X


      and mounting it with sudo mount /mnt/web (which works perfectly!)



      The problem is that I can only mount the drive as root. Running mount /mnt/web (without sudo) results in the error




      mount: only root can mount 192.x.x.xweb on /mnt/web




      I read this guide that suggests the following syntax




      //192.168.1.100/data /media/corpnet cifs username=johnny,domain=sealab,noauto,rw,users 0 0




      When I change my entry to use this syntax like this:



      \192.x.x.xweb /mnt/web cifs username=X,password=X,domain=X,noauto,rw,users 0 0


      and run mount /mnt/web I get




      mount.cifs: permission denied: no match for /mnt/web found in /etc/fstab




      I then read this question along with it's highest voted answer, but the same error appears.



      I have checked that my web folder in the /mnt directory has CHMOD 775, which should be ok.



      What could be wrong?










      share|improve this question















      I've created a remote mounted drive by adding this to my /etc/fstab:



      \192.x.x.xweb /mnt/web cifs username=X,password=X,domain=X


      and mounting it with sudo mount /mnt/web (which works perfectly!)



      The problem is that I can only mount the drive as root. Running mount /mnt/web (without sudo) results in the error




      mount: only root can mount 192.x.x.xweb on /mnt/web




      I read this guide that suggests the following syntax




      //192.168.1.100/data /media/corpnet cifs username=johnny,domain=sealab,noauto,rw,users 0 0




      When I change my entry to use this syntax like this:



      \192.x.x.xweb /mnt/web cifs username=X,password=X,domain=X,noauto,rw,users 0 0


      and run mount /mnt/web I get




      mount.cifs: permission denied: no match for /mnt/web found in /etc/fstab




      I then read this question along with it's highest voted answer, but the same error appears.



      I have checked that my web folder in the /mnt directory has CHMOD 775, which should be ok.



      What could be wrong?







      debian permissions mount fstab cifs






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 1 at 6:46

























      asked Aug 31 at 19:00









      Daniel

      1276




      1276




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          UPDATE (see the discussion on the comments):



          You are typing \ instead of //. For linux you must use // even if the network file system is running inside Windows.



          The old post:



          You are writing mount /mnt/web, but the directory you write in /etc/fstab was /media/corpnet so you need to write /mnt/web in /etc/fstab...



          So change /media/corpnet



          //192.168.1.100/data /media/corpnet cifs username=johnny,domain=sealab,noauto,rw,users 0 0


          To /mnt/web:



          //192.168.1.100/data /mnt/web cifs username=johnny,domain=sealab,noauto,rw,users 0 0


          Or if you can't edit fstab change your command to mount /media/corpnet (and you must create this directory too)



          Good lucky and if that works, please select this as the correct answer.






          share|improve this answer






















          • I am not using corpnet any place in my code. I was just quoting the syntax specified by the linked article. I'll edit my question to make this more obvious
            – Daniel
            Sep 1 at 6:45











          • Now you are typing \ instead of // for linux you must use // even if the network file system is running inside Windows.
            – Luciano Andress Martini
            Sep 3 at 12:09











          • If you are not typing \ and this is not the real file contents consider posting the real file.
            – Luciano Andress Martini
            Sep 3 at 12:17











          • That was it! Changing \ to // fixed my problem!
            – Daniel
            Sep 3 at 20:46











          • I updated the answer with this information, please select it as the right answer.
            – Luciano Andress Martini
            Sep 3 at 20:46










          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%2f466102%2fmouting-a-remote-drive-with-cifs%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote



          accepted










          UPDATE (see the discussion on the comments):



          You are typing \ instead of //. For linux you must use // even if the network file system is running inside Windows.



          The old post:



          You are writing mount /mnt/web, but the directory you write in /etc/fstab was /media/corpnet so you need to write /mnt/web in /etc/fstab...



          So change /media/corpnet



          //192.168.1.100/data /media/corpnet cifs username=johnny,domain=sealab,noauto,rw,users 0 0


          To /mnt/web:



          //192.168.1.100/data /mnt/web cifs username=johnny,domain=sealab,noauto,rw,users 0 0


          Or if you can't edit fstab change your command to mount /media/corpnet (and you must create this directory too)



          Good lucky and if that works, please select this as the correct answer.






          share|improve this answer






















          • I am not using corpnet any place in my code. I was just quoting the syntax specified by the linked article. I'll edit my question to make this more obvious
            – Daniel
            Sep 1 at 6:45











          • Now you are typing \ instead of // for linux you must use // even if the network file system is running inside Windows.
            – Luciano Andress Martini
            Sep 3 at 12:09











          • If you are not typing \ and this is not the real file contents consider posting the real file.
            – Luciano Andress Martini
            Sep 3 at 12:17











          • That was it! Changing \ to // fixed my problem!
            – Daniel
            Sep 3 at 20:46











          • I updated the answer with this information, please select it as the right answer.
            – Luciano Andress Martini
            Sep 3 at 20:46














          up vote
          2
          down vote



          accepted










          UPDATE (see the discussion on the comments):



          You are typing \ instead of //. For linux you must use // even if the network file system is running inside Windows.



          The old post:



          You are writing mount /mnt/web, but the directory you write in /etc/fstab was /media/corpnet so you need to write /mnt/web in /etc/fstab...



          So change /media/corpnet



          //192.168.1.100/data /media/corpnet cifs username=johnny,domain=sealab,noauto,rw,users 0 0


          To /mnt/web:



          //192.168.1.100/data /mnt/web cifs username=johnny,domain=sealab,noauto,rw,users 0 0


          Or if you can't edit fstab change your command to mount /media/corpnet (and you must create this directory too)



          Good lucky and if that works, please select this as the correct answer.






          share|improve this answer






















          • I am not using corpnet any place in my code. I was just quoting the syntax specified by the linked article. I'll edit my question to make this more obvious
            – Daniel
            Sep 1 at 6:45











          • Now you are typing \ instead of // for linux you must use // even if the network file system is running inside Windows.
            – Luciano Andress Martini
            Sep 3 at 12:09











          • If you are not typing \ and this is not the real file contents consider posting the real file.
            – Luciano Andress Martini
            Sep 3 at 12:17











          • That was it! Changing \ to // fixed my problem!
            – Daniel
            Sep 3 at 20:46











          • I updated the answer with this information, please select it as the right answer.
            – Luciano Andress Martini
            Sep 3 at 20:46












          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          UPDATE (see the discussion on the comments):



          You are typing \ instead of //. For linux you must use // even if the network file system is running inside Windows.



          The old post:



          You are writing mount /mnt/web, but the directory you write in /etc/fstab was /media/corpnet so you need to write /mnt/web in /etc/fstab...



          So change /media/corpnet



          //192.168.1.100/data /media/corpnet cifs username=johnny,domain=sealab,noauto,rw,users 0 0


          To /mnt/web:



          //192.168.1.100/data /mnt/web cifs username=johnny,domain=sealab,noauto,rw,users 0 0


          Or if you can't edit fstab change your command to mount /media/corpnet (and you must create this directory too)



          Good lucky and if that works, please select this as the correct answer.






          share|improve this answer














          UPDATE (see the discussion on the comments):



          You are typing \ instead of //. For linux you must use // even if the network file system is running inside Windows.



          The old post:



          You are writing mount /mnt/web, but the directory you write in /etc/fstab was /media/corpnet so you need to write /mnt/web in /etc/fstab...



          So change /media/corpnet



          //192.168.1.100/data /media/corpnet cifs username=johnny,domain=sealab,noauto,rw,users 0 0


          To /mnt/web:



          //192.168.1.100/data /mnt/web cifs username=johnny,domain=sealab,noauto,rw,users 0 0


          Or if you can't edit fstab change your command to mount /media/corpnet (and you must create this directory too)



          Good lucky and if that works, please select this as the correct answer.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Sep 3 at 20:48

























          answered Aug 31 at 19:37









          Luciano Andress Martini

          3,153829




          3,153829











          • I am not using corpnet any place in my code. I was just quoting the syntax specified by the linked article. I'll edit my question to make this more obvious
            – Daniel
            Sep 1 at 6:45











          • Now you are typing \ instead of // for linux you must use // even if the network file system is running inside Windows.
            – Luciano Andress Martini
            Sep 3 at 12:09











          • If you are not typing \ and this is not the real file contents consider posting the real file.
            – Luciano Andress Martini
            Sep 3 at 12:17











          • That was it! Changing \ to // fixed my problem!
            – Daniel
            Sep 3 at 20:46











          • I updated the answer with this information, please select it as the right answer.
            – Luciano Andress Martini
            Sep 3 at 20:46
















          • I am not using corpnet any place in my code. I was just quoting the syntax specified by the linked article. I'll edit my question to make this more obvious
            – Daniel
            Sep 1 at 6:45











          • Now you are typing \ instead of // for linux you must use // even if the network file system is running inside Windows.
            – Luciano Andress Martini
            Sep 3 at 12:09











          • If you are not typing \ and this is not the real file contents consider posting the real file.
            – Luciano Andress Martini
            Sep 3 at 12:17











          • That was it! Changing \ to // fixed my problem!
            – Daniel
            Sep 3 at 20:46











          • I updated the answer with this information, please select it as the right answer.
            – Luciano Andress Martini
            Sep 3 at 20:46















          I am not using corpnet any place in my code. I was just quoting the syntax specified by the linked article. I'll edit my question to make this more obvious
          – Daniel
          Sep 1 at 6:45





          I am not using corpnet any place in my code. I was just quoting the syntax specified by the linked article. I'll edit my question to make this more obvious
          – Daniel
          Sep 1 at 6:45













          Now you are typing \ instead of // for linux you must use // even if the network file system is running inside Windows.
          – Luciano Andress Martini
          Sep 3 at 12:09





          Now you are typing \ instead of // for linux you must use // even if the network file system is running inside Windows.
          – Luciano Andress Martini
          Sep 3 at 12:09













          If you are not typing \ and this is not the real file contents consider posting the real file.
          – Luciano Andress Martini
          Sep 3 at 12:17





          If you are not typing \ and this is not the real file contents consider posting the real file.
          – Luciano Andress Martini
          Sep 3 at 12:17













          That was it! Changing \ to // fixed my problem!
          – Daniel
          Sep 3 at 20:46





          That was it! Changing \ to // fixed my problem!
          – Daniel
          Sep 3 at 20:46













          I updated the answer with this information, please select it as the right answer.
          – Luciano Andress Martini
          Sep 3 at 20:46




          I updated the answer with this information, please select it as the right answer.
          – Luciano Andress Martini
          Sep 3 at 20:46

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f466102%2fmouting-a-remote-drive-with-cifs%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