0

I need the equivalent of Ubuntu's smbclient to connect to a SMB server's resources and disconnect. I do not need mounting.

2 Answers 2

0

If you need that specific command, installing it via homebrew might be the best option. For many items, this trio of os supplied commands might do the trick:

mount
umount 
mount_smbfs

If the manual pages are lacking, feel free to ask a follow on question with additional details.

3
  • Is there a way without mounting? I was supposed to perform an exercise where I need to only connect, and that's all, to the server on ubuntu, but I have to do it on mac. Dec 8, 2021 at 9:58
  • Netcat, ssh and python let you connect - depends what the scope of the exercise is I supposeā€¦ @Intolighter
    – bmike
    Dec 8, 2021 at 9:59
  • You added reference to samba, that is what I needed! Dec 8, 2021 at 11:42
0

I don't think you still need this after 2 years, but for anyone having this problem in 2023 or later, you can install it on macos with: brew install samba. :)

2
  • Keep in mind that you'll need to have Homebrew installed for this.
    – JMY1000
    Dec 15, 2023 at 21:22
  • Installing via brew was mentioned in the accepted answer from 2 years ago. Does your answer bring any new information? Dec 15, 2023 at 22:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .