File Locking with SLES/Samba, need help!

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.

[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

maRGas86,

It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.

Has your issue been resolved? If not, you might try one of the following options:

Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.suse.com/faq.php

If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.

Good luck!

Your SUSE Forums Team
http://forums.suse.com

How do you check, that there a no file locks set?

Normally if you run smbstatus you should see all open files and their
locks.


W. Prindl

maRGas86 wrote:
[color=blue]

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[/color]