[Samba] File lock problem

Max Riedel m.riedel at inode.at
Mon Apr 24 15:28:01 GMT 2006


Jeremy Allison wrote:
> On Sun, Apr 23, 2006 at 02:12:56PM +0200, Max Riedel wrote:
>   
>> Hi,
>> Sometimes it happens that when winXP machines try to open an excel 
>> sheet, both get write permissions.. the file isn't locked/read only..
>> This happens sometimes, not very often, but it's annoying ;)
>> Does anyone know what's causing this problem and maybe howto correct 
>> this issue?
>>     
>
> What Samba version, what does the smb.conf look like etc. etc.
>
> Jeremy.
>
>   
Sorry for not including that information the first time.

It's smbd Version 3.0.20
And here's the smb.conf

Thnx a lot!
Greetz,
Max

--------------------------- snip ---------------------------

#======================= Global Settings 
=====================================
[global]
netbios name = xxx

workgroup = YYYY

server string = Samba Server

hosts allow = 192.168.0. 10.1.1.

printcap name = /etc/printcap
load printers = yes


cups options = raw


log file = /var/log/samba/%m.log

max log size = 500


security = user

encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd


socket options = TCP_NODELAY SO_RCVBUF=32768 SO_SNDBUF=32768 IPTOS_LOWDELAY

interfaces = 192.168.0.102/24

remote announce = 192.168.0.255

local master = yes

os level = 200


preferred master = yes


name resolve order = wins lmhosts bcast

wins support = yes

dns proxy = no

preserve case = no
default case = lower
case sensitive = no

#============================ Share Definitions 
==============================
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /bin/false
winbind use default domain = no

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
public = yes
printable = yes


[shared]
comment = Temporary file space
path = /smb/shared
public = yes
writeable = yes
create mask = 0640
directory mask = 750
force create mode = 020
force directory mode = 020
guest ok = yes
force group = users

[data]
comment = Root
path = /smb/data
valid users = @verw
write list = @verw
force group = users
create mask = 0640
directory mask = 750
force create mode = 020
force directory mode = 020

[philip]
comment = Root
path = /smb/data/philip
valid users = philip, at verw,br,silv
writeable = no
write list = philip
force group = users
create mask = 0640
directory mask = 750
force create mode = 020
force directory mode = 020

[abr__hon]
path = /smb/data/abr__hon
valid users = @users, @verw
writeable = no
#write list = @verw
force group = users
create mask = 0640
directory mask = 750
force create mode = 020
force directory mode = 020

[psych]
path = /smb/data/psych
valid users = @users
writeable = yes
public = yes
force group = users
create mask = 0640
directory mask = 750
force create mode = 020
force directory mode = 020

[silv]
path = /smb/data/silv/
valid users = @users
writeable = no
write list = silv, @verw
force group = users
create mask = 0640
directory mask = 750
force create mode = 020
force directory mode = 020


--------------------------- snip ---------------------------


More information about the samba mailing list