OS/2, eCS & ArcaOS - Technical > Networking

Universal Naming Convention (UNC) on Samba?

(1/2) > >>

Doug Clark:
Does universal naming convention (UNC) work on Samba for OS/2?  Or is it limited to Netbios (file/print services) on OS/2?

Dariusz Piatkowski:
Hey Doug!

Do you mean as in "dir \\nas"?

..where 'nas' is my local nas box?

In that case, from CLI it does NOT work.

Now consider that I have all my Samba shares mapped through NetDrive, as such, I can readily get to them through the typical drive mapping.

When it comes to Samba specific client though, here is what a 'smbtree' returns on my system:


--- Code: ---[G:\]smbtree
Enter HOME\dariusz's password:
HOME
        \\WINMAIN                       WINMAIN
                \\WINMAIN\C$                    Default share
                \\WINMAIN\ADMIN$                Remote Admin
                \\WINMAIN\Printer2              Microsoft XPS Document Writer
                \\WINMAIN\C
                \\WINMAIN\SamsungPhotoPrinter   Samsung SPP-2040 Series
                \\WINMAIN\print$                Printer Drivers
                \\WINMAIN\IPC$                  Remote IPC
        \\ORCLSRVR
        \\NAS                           NSA325
                \\NAS\IPC$              IPC Service ("NSA325")
                \\NAS\public
                \\NAS\video
                \\NAS\photo
                \\NAS\music
                \\NAS\admin
                \\NAS\nfs
                \\NAS\BACKUP
                \\NAS\VOL1

--- End code ---

But if the Samba client approach is A-OK for you, than I would say the UNC naming convention would work.

Dave Yeo:
I think you have to use an URL such as,

--- Code: ---smb://NAS/public
--- End code ---
And NAS has to be resolvable, through DNS (host file) or the WINS thingy.

Dariusz Piatkowski:

--- Quote from: Dave Yeo on June 20, 2021, 12:35:55 am ---I think you have to use an URL such as,

--- Code: ---smb://NAS/public
--- End code ---
And NAS has to be resolvable, through DNS (host file) or the WINS thingy.

--- End quote ---

So 'dir smb://nas/public' Dave???

Nah, no go...NAS is resolvable, I have an entry in HOSTS as well as lmhosts, here is what I get:


--- Code: ---[G:\]dir smb:\\nas\public

The volume label in drive G is OS2.
The Volume Serial Number is 45B6:75C3.

SYS0123: A file name or volume label contains an incorrect character.

--- End code ---

...and the forward-slash version of it just produces multiple SYS1003 errors ( The syntax of the command is incorrect.).

Dave Yeo:
Yea, dir or any other DOS commands won't understand it. Perhaps some *nix ones might. Could try ls.

Navigation

[0] Message Index

[#] Next page

Go to full version