I’m trying to connect to smb on synology nas using material files

  • add storage > SMB server > add manually >
  • Hostname: wwddiyt.synology.me
  • Port: 445
  • Path: blank
  • Username: Username
  • Password: Password
  • Domain: blank

But it gives me this error below

java8.nio.file.FileSystemException:/:
java.net.ConnectException:failed to connect to
wwddiyt.synology.me/192.168.0.101 (port 445) from /: (port
0):connect failed:EACCES (Permission denied)

Thanks a lot in advance

  • encrust9870@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 day ago

    You may need to include a path. You might need to add each of your Shared folders separately. I have had this issue with Samba before where the host was browseable, but you could not mount the whole server.

    • happeningtofry99158@lemmy.worldOP
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      19 hours ago

      I have added Path in material files setting using FOLDERNAME and /FOLDERNAME but neither worked. What exact syntax should I use to fill in Path option?

      EDIT: just want to provide more info: I have 7 Shared folders under Volume 1 in my synology NAS. docker, home, homes… and I can access those shared folders in windows explorer by tying //NasName

    • Onomatopoeia@lemmy.cafe
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 day ago

      Yep, this is how SMB works when using Linux - I can’t explain why, but that’s always been my experience when either side is Linux - you just get a cryptic error.

      I was just fighting this earlier today trying to connect to my networked photo frame (which runs Linux). I’d forgotten the share name, and Windows Explorer couldn’t open just the server name. Once I added the share name it opened no problem.

  • boblin@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    1 day ago

    Are you potentially trying to mount a SMB share to the root folder on your client (i.e. / )? The error looks like the client is attempting to do something it itself is not allowed on its machine. Try specifing a path to mount to which is writable - e.g. /tmp/mount (not that you should keep mounting there if it works).

    • happeningtofry99158@lemmy.worldOP
      link
      fedilink
      arrow-up
      1
      ·
      19 hours ago

      Is this Path option referring to the path on my android mobile? I thought it is referring to the path of my synology NAS.

      Should I use exact path of android or relative path? I’m not quite sure what is the full path of my android mobile. But I think it is something like ...emulated/0/...

      • boblin@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        14 hours ago

        I think its you device‘s path, i.e. on Android - otherwise the error would look different I presume.

        Yes, /emulated/0/my-smb-mount or similar looks about right.