Hello all,
I'm novice at this so please excuse my ignorance.

I've just installed SLES11 on our new file server and also set up Samba on the server. There are 5 users that connect to the server via Windows Networking.

I need to be able to lock files when they are in use so that if another user tries to access the file it locks them out completely.

This is an example of one of the sections.
Code:
[Restricted]
comment = Restricted
path = /Restricted
create mode = 0660
directory mode = 0770
valid users = @restricted
oplocks = yes
level2 oplocks = yes
blocking locks = yes
I've also tried to add the oplocks, level2 oplocks & blocking locks into the [Global] section but to no avail.

I'm obviously doing something wrong and am hoping you people who know a lot more than I do will be able to help me here.

Thank you.
Daniel