Updating the smb.conf on Linux
When upgrading a Linux server, a small modification must be made to the usa
share path to point to the new install. "/etc/samba/smb.conf
" and change the path under the [usa] share to the path of the new Harmony install.
It is always a good idea to verify the configuration of the smb.conf
file.
- Edit
/etc/samba/smb.conf
and and change the path under the[usa]
share to the path of the new Harmony install.
[usa]
comment = Harmony binaries & stuff
browseable = yes
read only = no
guest ok = no
create mask = 0777
directory mask = 0777
path = /usr/local/ToonBoomAnimation/harmony[edition]_14
- Once the file is saved, verify that you have not made any basic syntax errors:
testparm
The shell output should look like this:
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[USA_DB]"
Processing section "[usa]"
Processing section "[usadata000]"
Processing section "[tmp]"
Loaded services file OK.
Server role: ROLE_STANDALONE
- Press Enter to see a dump of your service definitions.
NOTE:If the
smb.conf
was configured according to the 7.3 documentation, thetestparm
command may return the following error:Level II oplocks can only be set if oplocks are also set.
To get rid of this error, add the
level2 oplocks = No
parameter in the global section of thesmb.conf
—see /etc/init.d/smb restart for all the parameters required in thesmb.conf
.
- Restart
smb
:
- Verify the configuration of the
smb.conf
.
/etc/samba/smb.conf
Parameters needed in the [global] section:
encrypt passwords = yes
blocking locks = no
oplocks = no
level2 oplocks = no
follow symlinks = yes
unix extensions = no
wide links = yes
Default parameters for the shares:
[USA_DB]
comment = Toon Boom Harmony Database
browseable = yes
read only = no
guest ok = no
create mask = 0777
directory mask = 0777
path = /USA_DB
[usa]
comment = Toon Boom Harmony binaries & stuff
browseable = yes
read only = no
guest ok = no
create mask = 0777
directory mask = 0777
path = /usr/local/ToonBoomAnimation/harmony[edition]_14
[usadata000]
comment = Toon Boom Harmony data 000
browseable = yes
read only = no
guest ok = no
create mask = 0777
directory mask = 0777
path = /usadata000
- Always perform a
testparm
after making changes to thesmb.conf
.
testparm
- Restart the
smb
service.
/sbin/service smb restart
- Reboot the server, if possible, to verify that all the services are properly started.
- Once the server is booted, check all the logs to see if the services are running properly.
/tmp/lmgrd.log
/tmp/tbdbserver.log
/tmp/tbprocess.log
/tmp/Link_srv.log