Author Topic: Share and map shares in ArcaOS command line  (Read 5445 times)

ajbrehm

  • Guest
Share and map shares in ArcaOS command line
« 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?

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4787
  • Karma: +99/-1
    • View Profile
Re: Share and map shares in ArcaOS command line
« Reply #1 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.

Sean Casey

  • Full Member
  • ***
  • Posts: 122
  • Karma: +2/-0
    • View Profile
Re: Share and map shares in ArcaOS command line
« Reply #2 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

ajbrehm

  • Guest
Re: Share and map shares in ArcaOS command line
« Reply #3 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.".


Sean Casey

  • Full Member
  • ***
  • Posts: 122
  • Karma: +2/-0
    • View Profile
Re: Share and map shares in ArcaOS command line
« Reply #4 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.
« Last Edit: June 26, 2020, 09:42:56 pm by Sean Casey »