Linux to Windows - can list smb shares but cannot connect

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











up vote
1
down vote

favorite












This is a really weird one and all the research I've done so far isn't panning out.



I'm trying to connect to a Windows share from CentOS 7.5.1804 to Windows Server 2008 R2 (no snickering and let's stay on topic please) share. This server:



  • has not been promoted to a domain controller

  • resides on a flat network

  • Everyone has read/write to the share (I changed this for troubleshooting)

  • the share is named MyShare

When I run this command from Linux:



smbclient -L <IP> -U Administrator


I get this:



 Sharename Type Comment
--------- ---- -------
ADMIN$ Disk Remote Admin
C$ Disk Default share
IPC$ IPC Remote IPC
MyShare Disk
Users Disk
Reconnecting with SMB1 for workgroup listing.
Connection to <IP> failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
Failed to connect with SMB1 -- no workgroup available


Weird. It throws an error but still lists all the shares. Googling "NT_STATUS_RESOURCE_NAME_NOT_FOUND" hasn't yielded a lot of info.



Since the share was found, I pressed on with:



mount -v -t cifs //<IP>/MyShare /mnt -o username=Administrator


It returns this:



mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


So I read the man page and this can not use mount.cifs: mount error(2): No such file or directory



...and started thinking I need to specy the version or ntlm level.



I tried this:



mount -v -t cifs //<IP>/MyShare /mnt -o username=Administrator, vers=2.0


and



mount -v -t cifs //<IP>/MyShare /mnt -o username=Administrator, sec=ntlmv2


and they both error out because of incorrect syntax... but that's what was supplied as an example on that webpage and in the man page!



Any suggestions how to get the mount command working would be greatly appreciated. Thanks!







share|improve this question























    up vote
    1
    down vote

    favorite












    This is a really weird one and all the research I've done so far isn't panning out.



    I'm trying to connect to a Windows share from CentOS 7.5.1804 to Windows Server 2008 R2 (no snickering and let's stay on topic please) share. This server:



    • has not been promoted to a domain controller

    • resides on a flat network

    • Everyone has read/write to the share (I changed this for troubleshooting)

    • the share is named MyShare

    When I run this command from Linux:



    smbclient -L <IP> -U Administrator


    I get this:



     Sharename Type Comment
    --------- ---- -------
    ADMIN$ Disk Remote Admin
    C$ Disk Default share
    IPC$ IPC Remote IPC
    MyShare Disk
    Users Disk
    Reconnecting with SMB1 for workgroup listing.
    Connection to <IP> failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
    Failed to connect with SMB1 -- no workgroup available


    Weird. It throws an error but still lists all the shares. Googling "NT_STATUS_RESOURCE_NAME_NOT_FOUND" hasn't yielded a lot of info.



    Since the share was found, I pressed on with:



    mount -v -t cifs //<IP>/MyShare /mnt -o username=Administrator


    It returns this:



    mount error(2): No such file or directory
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


    So I read the man page and this can not use mount.cifs: mount error(2): No such file or directory



    ...and started thinking I need to specy the version or ntlm level.



    I tried this:



    mount -v -t cifs //<IP>/MyShare /mnt -o username=Administrator, vers=2.0


    and



    mount -v -t cifs //<IP>/MyShare /mnt -o username=Administrator, sec=ntlmv2


    and they both error out because of incorrect syntax... but that's what was supplied as an example on that webpage and in the man page!



    Any suggestions how to get the mount command working would be greatly appreciated. Thanks!







    share|improve this question





















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      This is a really weird one and all the research I've done so far isn't panning out.



      I'm trying to connect to a Windows share from CentOS 7.5.1804 to Windows Server 2008 R2 (no snickering and let's stay on topic please) share. This server:



      • has not been promoted to a domain controller

      • resides on a flat network

      • Everyone has read/write to the share (I changed this for troubleshooting)

      • the share is named MyShare

      When I run this command from Linux:



      smbclient -L <IP> -U Administrator


      I get this:



       Sharename Type Comment
      --------- ---- -------
      ADMIN$ Disk Remote Admin
      C$ Disk Default share
      IPC$ IPC Remote IPC
      MyShare Disk
      Users Disk
      Reconnecting with SMB1 for workgroup listing.
      Connection to <IP> failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
      Failed to connect with SMB1 -- no workgroup available


      Weird. It throws an error but still lists all the shares. Googling "NT_STATUS_RESOURCE_NAME_NOT_FOUND" hasn't yielded a lot of info.



      Since the share was found, I pressed on with:



      mount -v -t cifs //<IP>/MyShare /mnt -o username=Administrator


      It returns this:



      mount error(2): No such file or directory
      Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


      So I read the man page and this can not use mount.cifs: mount error(2): No such file or directory



      ...and started thinking I need to specy the version or ntlm level.



      I tried this:



      mount -v -t cifs //<IP>/MyShare /mnt -o username=Administrator, vers=2.0


      and



      mount -v -t cifs //<IP>/MyShare /mnt -o username=Administrator, sec=ntlmv2


      and they both error out because of incorrect syntax... but that's what was supplied as an example on that webpage and in the man page!



      Any suggestions how to get the mount command working would be greatly appreciated. Thanks!







      share|improve this question











      This is a really weird one and all the research I've done so far isn't panning out.



      I'm trying to connect to a Windows share from CentOS 7.5.1804 to Windows Server 2008 R2 (no snickering and let's stay on topic please) share. This server:



      • has not been promoted to a domain controller

      • resides on a flat network

      • Everyone has read/write to the share (I changed this for troubleshooting)

      • the share is named MyShare

      When I run this command from Linux:



      smbclient -L <IP> -U Administrator


      I get this:



       Sharename Type Comment
      --------- ---- -------
      ADMIN$ Disk Remote Admin
      C$ Disk Default share
      IPC$ IPC Remote IPC
      MyShare Disk
      Users Disk
      Reconnecting with SMB1 for workgroup listing.
      Connection to <IP> failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
      Failed to connect with SMB1 -- no workgroup available


      Weird. It throws an error but still lists all the shares. Googling "NT_STATUS_RESOURCE_NAME_NOT_FOUND" hasn't yielded a lot of info.



      Since the share was found, I pressed on with:



      mount -v -t cifs //<IP>/MyShare /mnt -o username=Administrator


      It returns this:



      mount error(2): No such file or directory
      Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


      So I read the man page and this can not use mount.cifs: mount error(2): No such file or directory



      ...and started thinking I need to specy the version or ntlm level.



      I tried this:



      mount -v -t cifs //<IP>/MyShare /mnt -o username=Administrator, vers=2.0


      and



      mount -v -t cifs //<IP>/MyShare /mnt -o username=Administrator, sec=ntlmv2


      and they both error out because of incorrect syntax... but that's what was supplied as an example on that webpage and in the man page!



      Any suggestions how to get the mount command working would be greatly appreciated. Thanks!









      share|improve this question










      share|improve this question




      share|improve this question









      asked Jun 20 at 22:19









      MGoBlue93

      132




      132




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          Try to create a new folder:



          mkdir /media/MGoBlue93/cifsShare


          And mount to it, I think that this issue is related to permissions, and you do not have any to mount to /mnt.






          share|improve this answer





















          • /media is 755. So, the mkdir command above (it's also missing a -p) won't work as a user. The permission error, "mount error(2): No such file or directory" is happening because for some reason, the shares aren't being enumerated 100% correctly... see the first part of the OP.
            – MGoBlue93
            Jun 25 at 19:44










          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%2f450986%2flinux-to-windows-can-list-smb-shares-but-cannot-connect%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
          0
          down vote



          accepted










          Try to create a new folder:



          mkdir /media/MGoBlue93/cifsShare


          And mount to it, I think that this issue is related to permissions, and you do not have any to mount to /mnt.






          share|improve this answer





















          • /media is 755. So, the mkdir command above (it's also missing a -p) won't work as a user. The permission error, "mount error(2): No such file or directory" is happening because for some reason, the shares aren't being enumerated 100% correctly... see the first part of the OP.
            – MGoBlue93
            Jun 25 at 19:44














          up vote
          0
          down vote



          accepted










          Try to create a new folder:



          mkdir /media/MGoBlue93/cifsShare


          And mount to it, I think that this issue is related to permissions, and you do not have any to mount to /mnt.






          share|improve this answer





















          • /media is 755. So, the mkdir command above (it's also missing a -p) won't work as a user. The permission error, "mount error(2): No such file or directory" is happening because for some reason, the shares aren't being enumerated 100% correctly... see the first part of the OP.
            – MGoBlue93
            Jun 25 at 19:44












          up vote
          0
          down vote



          accepted







          up vote
          0
          down vote



          accepted






          Try to create a new folder:



          mkdir /media/MGoBlue93/cifsShare


          And mount to it, I think that this issue is related to permissions, and you do not have any to mount to /mnt.






          share|improve this answer













          Try to create a new folder:



          mkdir /media/MGoBlue93/cifsShare


          And mount to it, I think that this issue is related to permissions, and you do not have any to mount to /mnt.







          share|improve this answer













          share|improve this answer



          share|improve this answer











          answered Jun 24 at 6:09









          Eliad Cohen

          261




          261











          • /media is 755. So, the mkdir command above (it's also missing a -p) won't work as a user. The permission error, "mount error(2): No such file or directory" is happening because for some reason, the shares aren't being enumerated 100% correctly... see the first part of the OP.
            – MGoBlue93
            Jun 25 at 19:44
















          • /media is 755. So, the mkdir command above (it's also missing a -p) won't work as a user. The permission error, "mount error(2): No such file or directory" is happening because for some reason, the shares aren't being enumerated 100% correctly... see the first part of the OP.
            – MGoBlue93
            Jun 25 at 19:44















          /media is 755. So, the mkdir command above (it's also missing a -p) won't work as a user. The permission error, "mount error(2): No such file or directory" is happening because for some reason, the shares aren't being enumerated 100% correctly... see the first part of the OP.
          – MGoBlue93
          Jun 25 at 19:44




          /media is 755. So, the mkdir command above (it's also missing a -p) won't work as a user. The permission error, "mount error(2): No such file or directory" is happening because for some reason, the shares aren't being enumerated 100% correctly... see the first part of the OP.
          – MGoBlue93
          Jun 25 at 19:44












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f450986%2flinux-to-windows-can-list-smb-shares-but-cannot-connect%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?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?