Can mount CIFS share but not read / write to it












1















I have a GNU/Linux (Xubuntu) guest running in Hyper-V on a Windows 10 Pro Host. I'm trying to mount a folder shared by a host locally. What seems strange to me is that I can mount the folder but not read from or write to it.



mount -t cifs //192.168.0.3/codebase codebase -o username=myUsername,password=myPassword,iocharset=utf8,uid=root,gid=root,rw


This appears to succeed. If I run mount it displays this amongst the output:



//192.168.0.3/codebase on /home/myBox/codebase type cifs (rw,relatime,vers=default,cache=strict,username=myUsername,domain=,uid=0,forceuid,gid=0,forcegid,addr=192.168.0.3,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,rsize=1048576,wsize=1048576,echo_interval=60,actimeo=1)


However, trying to do anything with that mount point, ls, touch, mkdir, chmod, chown, whatever, all returns "Permission Denied". The permissions of the directory read as "drwxr-xr-x 2 root root". I am root when I try these operations.



I originally had vers=3.1.1 as one of the options on the mount command but this causes the mount to fail with "mount error(11): Resource temporarily unavailable".



I have another Guest VM in Hyper-V this time running Windows 10, that is able to connect. Originally this caused a problem because the host will only allow the same set of credentials to connect from a single other machine, but I have secondary credentials for the GNU/Linux box so that's not the issue. The Host is sharing the folder with permissions for "Everyone" to read/write.



If I change either the username or the password when mounting, it fails with permission denied so I am taking it that my credentials are correct. The guest can ping the host and get a reply.



I don't understand why it can mount the folder but not read from it. Help?










share|improve this question



























    1















    I have a GNU/Linux (Xubuntu) guest running in Hyper-V on a Windows 10 Pro Host. I'm trying to mount a folder shared by a host locally. What seems strange to me is that I can mount the folder but not read from or write to it.



    mount -t cifs //192.168.0.3/codebase codebase -o username=myUsername,password=myPassword,iocharset=utf8,uid=root,gid=root,rw


    This appears to succeed. If I run mount it displays this amongst the output:



    //192.168.0.3/codebase on /home/myBox/codebase type cifs (rw,relatime,vers=default,cache=strict,username=myUsername,domain=,uid=0,forceuid,gid=0,forcegid,addr=192.168.0.3,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,rsize=1048576,wsize=1048576,echo_interval=60,actimeo=1)


    However, trying to do anything with that mount point, ls, touch, mkdir, chmod, chown, whatever, all returns "Permission Denied". The permissions of the directory read as "drwxr-xr-x 2 root root". I am root when I try these operations.



    I originally had vers=3.1.1 as one of the options on the mount command but this causes the mount to fail with "mount error(11): Resource temporarily unavailable".



    I have another Guest VM in Hyper-V this time running Windows 10, that is able to connect. Originally this caused a problem because the host will only allow the same set of credentials to connect from a single other machine, but I have secondary credentials for the GNU/Linux box so that's not the issue. The Host is sharing the folder with permissions for "Everyone" to read/write.



    If I change either the username or the password when mounting, it fails with permission denied so I am taking it that my credentials are correct. The guest can ping the host and get a reply.



    I don't understand why it can mount the folder but not read from it. Help?










    share|improve this question

























      1












      1








      1








      I have a GNU/Linux (Xubuntu) guest running in Hyper-V on a Windows 10 Pro Host. I'm trying to mount a folder shared by a host locally. What seems strange to me is that I can mount the folder but not read from or write to it.



      mount -t cifs //192.168.0.3/codebase codebase -o username=myUsername,password=myPassword,iocharset=utf8,uid=root,gid=root,rw


      This appears to succeed. If I run mount it displays this amongst the output:



      //192.168.0.3/codebase on /home/myBox/codebase type cifs (rw,relatime,vers=default,cache=strict,username=myUsername,domain=,uid=0,forceuid,gid=0,forcegid,addr=192.168.0.3,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,rsize=1048576,wsize=1048576,echo_interval=60,actimeo=1)


      However, trying to do anything with that mount point, ls, touch, mkdir, chmod, chown, whatever, all returns "Permission Denied". The permissions of the directory read as "drwxr-xr-x 2 root root". I am root when I try these operations.



      I originally had vers=3.1.1 as one of the options on the mount command but this causes the mount to fail with "mount error(11): Resource temporarily unavailable".



      I have another Guest VM in Hyper-V this time running Windows 10, that is able to connect. Originally this caused a problem because the host will only allow the same set of credentials to connect from a single other machine, but I have secondary credentials for the GNU/Linux box so that's not the issue. The Host is sharing the folder with permissions for "Everyone" to read/write.



      If I change either the username or the password when mounting, it fails with permission denied so I am taking it that my credentials are correct. The guest can ping the host and get a reply.



      I don't understand why it can mount the folder but not read from it. Help?










      share|improve this question














      I have a GNU/Linux (Xubuntu) guest running in Hyper-V on a Windows 10 Pro Host. I'm trying to mount a folder shared by a host locally. What seems strange to me is that I can mount the folder but not read from or write to it.



      mount -t cifs //192.168.0.3/codebase codebase -o username=myUsername,password=myPassword,iocharset=utf8,uid=root,gid=root,rw


      This appears to succeed. If I run mount it displays this amongst the output:



      //192.168.0.3/codebase on /home/myBox/codebase type cifs (rw,relatime,vers=default,cache=strict,username=myUsername,domain=,uid=0,forceuid,gid=0,forcegid,addr=192.168.0.3,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,rsize=1048576,wsize=1048576,echo_interval=60,actimeo=1)


      However, trying to do anything with that mount point, ls, touch, mkdir, chmod, chown, whatever, all returns "Permission Denied". The permissions of the directory read as "drwxr-xr-x 2 root root". I am root when I try these operations.



      I originally had vers=3.1.1 as one of the options on the mount command but this causes the mount to fail with "mount error(11): Resource temporarily unavailable".



      I have another Guest VM in Hyper-V this time running Windows 10, that is able to connect. Originally this caused a problem because the host will only allow the same set of credentials to connect from a single other machine, but I have secondary credentials for the GNU/Linux box so that's not the issue. The Host is sharing the folder with permissions for "Everyone" to read/write.



      If I change either the username or the password when mounting, it fails with permission denied so I am taking it that my credentials are correct. The guest can ping the host and get a reply.



      I don't understand why it can mount the folder but not read from it. Help?







      windows ubuntu mount hyper-v cifs






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 15 at 11:27









      JaneDoeJaneDoe

      62




      62






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          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: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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%2fsuperuser.com%2fquestions%2f1394475%2fcan-mount-cifs-share-but-not-read-write-to-it%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 Super User!


          • 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%2fsuperuser.com%2fquestions%2f1394475%2fcan-mount-cifs-share-but-not-read-write-to-it%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

          "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

          Alcedinidae

          Origin of the phrase “under your belt”?