Configuring Samba on Linux
In order to allow Windows clients to access the database's directories remotely, they must be shared by the server using the Samba protocol.
Samba may not be installed by default on your machine. You can install it using your distribution's package manager, then enable it as a daemon and configure it to share your database files.
-
In a terminal, type the following command to install Samba:
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:
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]_14
[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:
testparm
-
Next, you must create a Samba user. Its username and password will be used as credentials to connect to the share from client workstations:
smbpasswd -a usabatch
This will create the user usabatch and prompt you to type in their password.
-
Enable and start the Samba daemon:
chkconfig smb on
service smb start