Sharing the Harmony Database Files Using Samba on macOS
Installing Samba for a macOS server is only required if you have Windows based client workstations on your network, as they cannot connect to the database server using NFS. Because Samba is no longer supported by macOS, it must be installed as a third party software on your machine.
Configuring a Harmony database server to share via Samba requires the following steps:
- Disabling the SMB file sharing protocol natively supported by macOS. This protocol may interfere with Samba. Since its options are limited and optimized for personal use, it cannot be used for a Harmony server.
- Installing SMBup, a third-party implementaton of Samba for macOS.
- Configuring the shared folders.
- Creating a Sharing type user account. This is required because this implementation of Samba fails to authenticate users that are part of 15 groups or more, and macOS subscribes all users to more than 15 system groups in the back-end, except for Sharing type users.
- Open the Apple menu and select System Preferences.
- Click on Sharing.
- In the list to the left, if File Sharing is unchecked, then SMB is implicitly disabled. If File Sharing is checked, select it.
- Click on Options.
- Make sure that Share files and folders using SMB is unchecked.
- Click on Done.
- Close the Sharing panel.
-
Download the SMBUp package from the following website:
- In Finder, open your Downloads directory, then drag and drop the SMBup package into the Applications directory.
- Navigate to the Applications directory.
-
Right-click on SMBup and select Open.
You will be prompted to confirm that you want to launch the application, as it is from an unidentified developer.
-
Click on Open.
After the donation prompt, a message will appear stating that Samba is not installed.
- Click on Install Samba for me.
- In the next prompt, read the advisory.
- Click on Ok, help me install the software.
- Click on Download and install package.
- At the prompt, type in the username and password of an account with administrator privileges to allow SMBup to install Samba.
- Once the installation is done, click on Configure Shared Disks.
- Near the top-left corner, click on the Lock icon to obtain administrative privileges.
- Enter the username and password of an account with administrator privileges.
- In the Name field, make sure the name of your Samba server matches the name of your server machine.
- Click on Save All.
- Close SMBup. We will configure Samba using the terminal, to make sure it is precisely configured with the right options.
-
In the confirmation prompt, click on Start Samba for me and Quit Application.
The Samba service is now installed and enabled.
-
In a terminal, open the Samba configuration file to configure Samba and add your database directories as Samba shares:
$ vi /opt/local/etc/samba3/smb.conf
- Under the [global] section of smb.conf, add the following options:
[global]
encrypt passwords = yes
blocking locks = no
oplocks = no
level2 oplocks = no
follow symlinks = yes
unix extensions = no
wide links = yes
- At the bottom of the Samba configuration file, add the following:
[USA_DB]
comment = Harmony Database
browseable = yes
read only = no
guest ok = no
create mask = 0777
directory mask = 0777
path = /USA_DB
[usa]
comment = Harmony Binaries and Configuration
browseable = yes
read only = no
guest ok = no
create mask = 0777
directory mask = 0777
path = /Applications/Toon Boom Harmony 15.0 Advanced Network/tba
[USADATA]
comment = Harmony Scene Data 000
browseable = yes
read only = no
guest ok = no
create mask = 0777
directory mask = 0777
path = /USADATA
-
Verify that Samba understands the parameters in its configuration file with the following command:
$ /opt/local/bin/testparm
- Open the Apple menu and select System Preferences.
- Click on Users and Groups.
- In the bottom-left corner of the Users & Groups dialog, click on the lock icon labeled Click the lock to make changes to get administrator permissions.
- Enter the username and password of an account with administrator privileges.
-
Click on the + button at the bottom of the user list.
The user creation panel appears.
- In the New Account drop-down, select Sharing Only.
- In the Full Name and Account Name fields, enter the desired name for the user who will have access to the Samba share.
- Give the user a password.
- Click on Create User.
-
A local user must be added to the list of users with access to the Samba shares. To do this, type in the following command:
$ sudo smbpasswd -a usabatch
You will be prompted to assign a password to the user, then to confirm it. This username and password will be used to connect to the Samba shares.
NOTES- The user you are adding to the list of Samba users must already exist as a regular user on the machine.
- On Windows clients, when using the Configuration Wizard to configure Harmony database clients, you must enter this user's username and password in order to be able to connect to the database shares.