Hello, I am a linux newbie not to mention Samba, I am searching for a Linux alternative to Windows Sharing.... I have configured a Samba share on a RHLE 5u6 with the following settings: [global] workgroup = TEST netbios name = MDC2 security = share kernel oplocks = yes blocking locks = yes oplocks = yes level2 oplocks = yes [test2] path = /test read only =no guest ok = yes browsable = yes locking = yes Now, I am using a windows box to access this share, and locking a file, smbstatus show: Locked files: Pid Uid DenyMode Access R/W Oplock SharePath Name Time -------------------------------------------------------------------------------------------------- 29540 501 DENY_NONE 0x100001 RDONLY NONE /test . Sun Oct 17 04:51:28 2010 29540 501 DENY_NONE 0x20196 WRONLY EXCLUSIVE+BATCH /test test.file Sun Oct 17 04:51:38 2010 When using another window box and trying to rename/delete the file i am locking, it operation fails (as expected), but when going to /test on the linux box i am able to rename (mv) or delete (rm) the file... Please advice... Thanks, Ebzed...
On Sun, Oct 17, 2010 at 05:05:09AM +0200, Eran-Binyamin Zeitoun wrote:> When using another window box and trying to rename/delete the file i am > locking, it operation fails (as expected), > but when going to /test on the linux box i am able to rename (mv) or > delete (rm) the file...You're seeing the share mode style locking here. Share modes don't extend into the native linux file system. Volker
On Mon, Oct 18, 2010 at 12:29:05AM +0200, Eran-Binyamin Zeitoun wrote:> <font face="Default Sans > Serif,Verdana,Arial,Helvetica,sans-serif" size="2"> > <span><br>Thank you Volker,<br>May i say that a solution > for that might be to mount the samba share locally on the > server, and use this mount point to access the files > rather direct access to the content ?,<br>this way all > requests will pass thru samba and the share mode style > locking will be > active?<br><br>Eran.<br></span><br><br><fontYes, that might do it. Volker