In MacOS, is it possible to list and/or define SMB shares at the command-line?
On a Linux machine with Samba, I can use the testparm
command and the /etc/samba/smb.conf
file.
On Windows it would be the net share ...
command.
On Mac, I only know the "System Preferences" > "Sharing" GUI. But to check or set these shares on multiple machines, I would like to be able to do it through SSH sessions and the command-line.
Is this possible?