file locking

Robin P. Blanchard Robin_Blanchard at gactr.uga.edu
Thu Mar 15 17:00:12 GMT 2001


i have having the most annoying file locking problems given the following setup:

server:	IRIX 6.5.11 + samba-2.0.7 irix binary (from samba website)
client:	win2k

when on the client, simply right-clicking on the file causes samba to lock
it, thus making it impossible to rename/move that file. all file permissions
seem correct.

reset directory/file permissions to be sure this is accurate:

find /export/fs2/mp3 -type f -exec chmod 664 {} \;
find /export/fs2/mp3 -type d -exec chmod 2775 {} \;

database 22# pwd
/export/fs2/mp3/Pop/U2
database 23# ls -ald .
drwxrwsr-x    5 service  noc         4096 Mar 12 13:25 .
database 24# ls -ald U2-Summer.Rain.mp3 
-rw-rw-r--    1 service  noc       5962315 Oct 13 09:02 U2-Summer.Rain.mp3

looks great so start up samba:

database 25# /etc/init.d/samba start

see what smbstatus has to say:

database 26# /usr/samba/bin/smbstatus

Samba version 2.0.7
Service      uid      gid      pid     machine
----------------------------------------------

No locked files


go over to win2k and right click on a file and check smbstatus again:

database 27# /usr/samba/bin/smbstatus

Samba version 2.0.7
Service      uid      gid      pid     machine
----------------------------------------------
MP3          service  noc      31988   robin    (10.10.100.126) Thu Mar 15
11:09:23 2001

Locked files:
Pid    DenyMode   R/W        Oplock           Name
--------------------------------------------------
31988  DENY_WRITE RDONLY     EXCLUSIVE+BATCH 
/export/fs2/mp3/Pop/U2/U2-Always.mp3   Thu Mar 15 11:09:31 2001


so just for kicks see if we can rename that file in win2k:

"cannot rename U2-Always: access is denied. make sure that
the disk is not full or write-protected and that the file
is not currently in use"



i've been staring at this for days and have no idea as to
what the hell is going on. any suggestions are greatly appreciated.
here's my smb.conf stuff:
[MP3]
   comment = MP3
   path = /export/fs2/mp3
   guest ok = no
   browseable = no
   writable = yes
   write list = @noc
   create mask = 0664
   directory mask = 2775
   force user = service
   force group = noc



-- 
------------------------------------
Robin P. Blanchard
IT Program Specialist
Georgia Center for Continuing Ed.
fon: 706.542.2404 fax: 706.542.6546
email: Robin_Blanchard at gactr.uga.edu
------------------------------------




More information about the samba mailing list