I have a working NAS which appears in file manager as smb://ts216g/public/ but if I try to use this path in shell scripts, python scripts, or command line it errors with ‘No such file or directory’.
The file manager can access the whole NAS without permissions violations.
How can I specify a location on the NAS in a script?
Yes, I’m sure you’re right, but there doesn’t appear to be any mount point in the filesystem. All access appears to be through the smb:// network protocol. The file manager just makes objects look the same as local objects. And if I dump a file name into an editor it shows %20 for spaces.
This is a bit disappointing. I can access all files on the NAS from RISC OS just the same as local files, so I can automate procedures through scripts. I’d still like to know if anyone has any ideas how to do this from Linux. Is there a hidden API in a file manager perhaps, or can smbclient be used under program control? I can’t find any ready-made answers, which is why I asked here.
We have already had this - RISC OS is different, works differently.
It has been a long time since I used samba or any other network file system, but it should not be too difficult.
Although I seldom ever use graphical file managers - I just can’t describe how it would work only with Thunar, which you seem to prefer - or with Dolphin or whatever.
The Arch wiki is usually the best place of information - but they won’t describe how to handle your graphical tools.
Basically, you mount your samba share (using its protocol and address) to some directory of your choice.
That directory IS your mount point, through which you can access the share by PATH.