In order to allow Windows clients to access the database's directories remotely, they must be shared by the server using the Samba protocol.
In a terminal, type the following command to install Samba:
$ sudo yum install samba
If samba is not installed, you will be prompted to confirm the installation. Confirm and wait for the installation to finish. If it is already installed, yum will advise you of this and quit.
Open the Samba configuration file to configure Samba and add your database directories as Samba shares:
$ sudo vi /etc/samba/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 = /usr/local/ToonBoomAnimation/harmony[Edition]_16.0 [usadata000] comment = Harmony Scene Data 000 browseable = yes read only = no guest ok = no create mask = 0777 directory mask = 0777 path = /usadata000
Verify that Samba understands the parameters in its configuration file with the following command:
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.NOTE The user you are adding to the list of Samba users must already exist as a regular user on the machine.
Enable and start the Samba daemon:
$ sudo chkconfig smb on
$ sudo service smb start
Samba is now configured to give access to the database files with the selected username and password.