[Samba] file locking on linux samba with mac osx and windows have no function?

Joris Heinrich jhn at malin-easy.de
Thu Oct 21 13:10:20 MDT 2010


hallo list,

I have the following problem:

smb.conf

[global]
         server string = file1.int.stayfriends.de
         unix extensions = No
         socket options = SO_KEEPALIVE TCP_NODELAY IPTOS_LOWDELAY
         dns proxy = No
         ldap ssl = no
         read only = No
         create mask = 0660
         directory mask = 0770
         #map hidden = Yes
         #map system = Yes

         # 3. Logging Options:

         log file = /var/log/samba/%m.log
         max log size = 50
         log level = 3

[cd-depart]
         comment = Allgemeine Daten Test Daten
         path = /test/cd-dpart/
         valid users = @smb-cd

mac osx and windows can access a file at the same time.

smbstatus:

Samba version 3.2.3
PID     Username      Group         Machine
-------------------------------------------------------------------
10019     cd1           cd2           palandt      (::ffff:192.168.56.101)
9167      cd2           cd2           macbookpro-a0cc (::ffff:192.168.56.1)

Service      pid     machine       Connected at
-------------------------------------------------------
IPC$         10019   palandt       Thu Oct 21 15:02:09 2010
cd-depart    10019   palandt       Thu Oct 21 15:02:09 2010
IPC$         10019   palandt       Thu Oct 21 15:02:09 2010
cd-depart    9167   macbookpro-a0cc  Thu Oct 21 14:21:48 2010

Locked files:
Pid          Uid        DenyMode   Access      R/W        
Oplock           SharePath   Name   Time
--------------------------------------------------------------------------------------------------
10019        1002       DENY_NONE  0x100001    RDONLY     
NONE             /test/cd-dpart   .   Thu Oct 21 15:02:09 2010
9167         1004       DENY_NONE  0x100001    RDONLY     
NONE             /test/cd-dpart   .   Thu Oct 21 14:21:48 2010


how do I reach, that further access only read granted bei samba?

thanks in advanced

jhn



More information about the samba mailing list