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

Jeremy Allison jra at samba.org
Thu Oct 28 11:29:14 MDT 2010


On Thu, Oct 21, 2010 at 09:10:20PM +0200, Joris Heinrich wrote:
> 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?

You need to make sure that access is done using the required
deny mode, or use an application that understands file locking.

Jeremy.


More information about the samba mailing list