OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Utilities => Topic started by: ajbrehm on June 26, 2020, 12:48:07 pm

Title: Share and map shares in ArcaOS command line
Post by: ajbrehm on June 26, 2020, 12:48:07 pm
How can I share folders and map shares in the command line in ArcaOS?

Specifically, what are the equivalents of Windows' net share and net use commands?
Title: Re: Share and map shares in ArcaOS command line
Post by: Dave Yeo on June 26, 2020, 04:55:52 pm
Check out smbclient. Try "smbclient --help" and "smbclient --usage".
Hopefully someone else who actually uses it can add more.
Title: Re: Share and map shares in ArcaOS command line
Post by: Sean Casey on June 26, 2020, 05:18:41 pm
Try using the "net use" command:

net use [available drive]  [\\host\share] [password]

Example:

 net use w: \\sentinel\backup password
Title: Re: Share and map shares in ArcaOS command line
Post by: ajbrehm on June 26, 2020, 07:44:29 pm
Try using the "net use" command:

net use [available drive]  [\\host\share] [password]

Example:

 net use w: \\sentinel\backup password

I did exactly that and I am getting an error 58. That's why I ask.

Apparently error 59 is "The specified server cannot perform the requested operation.".

Title: Re: Share and map shares in ArcaOS command line
Post by: Sean Casey on June 26, 2020, 09:13:34 pm
Sorry, Net Use is working on my AOS and thought you might have an issue with syntax.   Error 59 is an unexpected network error which often is the result of a security negotiation error.

If you are trying to connect to a Linux samba share, try adding "ntlm auth = yes" in your smb.conf global section, which allows security negotiation to start with NTLMv1 (and above).  If it's a Windows share, there's an older post on this forum describing the steps to modify Windows security.