[Samba] Oplocks_break FAILURE in 2.2.7? hmm..

floppy floppy at pobox.sk
Tue Jan 14 03:04:00 GMT 2003


Dear Samba team.

I have hybrid network with MSDOS / Win9x(ME) / Win2k/XP(NT) computers 
at home. I'm using Samba as PDC. W9x/me clients works fine as so as 
with roving profiles, but I'm experiencing problems with w2k, NT4/XP 
just not test because i'm testing on my box at home and when it'll 
work fine then I'll go to clients from which smaller part has XPs 
installed on PC. I think if it works on w2k so will be working on XP 
too. My problem is nextone: Logon to domain from w2k box is OK(NO 
ERROR). Drives are mapped and everything works fine. Just smb_audit 
tells that the .Desktop.ini cannot found at directory "." ?!? I'm 
ignoring it, but when I logout the system begin process of storing 
profile on Samba server and report that some files cannot be stored 
due to problem with share and storing on it. It tells that the 
process is owned by someone else. When I looked in my tty12(security 
console), there were put this BUG stuff: 
.
.
.
Jan 14 02:59:25 Char0n smbd[10945]: [2003/01/14 02:59:25, 0] 
smbd/oplock.c:oplock_break(684)
Jan 14 02:59:25 Char0n smbd[10945]:   oplock_break: ERROR: 
oplock_break already sent for file Win2
K/floppy/Cookies/prf92.tmp (dev = 30e, inode = 113359, file_id = 280)
Jan 14 02:59:25 Char0n smbd[10945]: [2003/01/14 02:59:25, 0] 
smbd/open.c:open_mode_check(600)
Jan 14 02:59:25 Char0n smbd[10945]:   open_mode_check: FAILED when 
breaking oplock (3) on file /ho
me/profiles/Win2K/floppy/Cookies/prf92.tmp, dev = 30e, inode = 113359
Jan 14 02:59:28 Char0n smbd[10945]: [2003/01/14 02:59:28, 0] 
smbd/oplock.c:oplock_break(684)
Jan 14 02:59:28 Char0n smbd[10945]:   oplock_break: ERROR: 
oplock_break already sent for file Win2
K/floppy/Cookies/prf96.tmp (dev = 30e, inode = 113364, file_id = 432)
Jan 14 02:59:28 Char0n smbd[10945]: [2003/01/14 02:59:28, 0] 
smbd/open.c:open_mode_check(600)
Jan 14 02:59:28 Char0n smbd[10945]:   open_mode_check: FAILED when 
breaking oplock (3) on file /ho
me/profiles/Win2K/floppy/Cookies/prf96.tmp, dev = 30e, inode = 113364
Jan 14 02:59:28 Char0n smbd[10945]: [2003/01/14 02:59:28, 0] 
smbd/oplock.c:oplock_break(684)
Jan 14 02:59:28 Char0n smbd[10945]:   oplock_break: ERROR: 
oplock_break already sent for file Win2
K/floppy/Cookies/prf96.tmp (dev = 30e, inode = 113364, file_id = 432)
Jan 14 02:59:28 Char0n smbd[10945]: [2003/01/14 02:59:28, 0] 
smbd/open.c:open_mode_check(600)
Jan 14 02:59:28 Char0n smbd[10945]:   open_mode_check: FAILED when 
breaking oplock (3) on file /ho
me/profiles/Win2K/floppy/Cookies/prf96.tmp, dev = 30e, inode = 113364
.
.
.
and more every logout from w2k box. I don't think I'm a linux guru so 
I'm not reporting this as a BUG(noone knows :), but I'd be 
appreciated if you can help me or explain where the fail is with this.

Complete trace of login/logout

Jan 14 02:48:23 Char0n pam_winbind[10735]: user 'floppy' granted acces
Jan 14 02:48:24 Char0n pam_winbind[10735]: user 'floppy' granted acces
Jan 14 02:48:24 Char0n samba(pam_unix)[10735]: session opened for 
user floppy by (uid=0)
Jan 14 02:48:41 Char0n smbd_audit[10735]: VFS_INIT: vfs_ops loaded
Jan 14 02:48:41 Char0n smbd_audit[10735]: connect to service public 
by user floppy
Jan 14 02:48:41 Char0n smbd_audit[10735]: opendir .
Jan 14 02:48:41 Char0n smbd_audit[10735]: open Desktop.ini (fd -1) 
failed: No such file or directo
ry
Jan 14 02:48:41 Char0n smbd_audit[10735]: opendir .
Jan 14 02:48:41 Char0n smbd_audit[10735]: open Desktop.ini (fd -1) 
failed: No such file or directo
ry
Jan 14 02:48:42 Char0n smbd_audit[10735]: VFS_INIT: vfs_ops loaded
Jan 14 02:48:42 Char0n smbd_audit[10735]: connect to service public 
by user floppy
Jan 14 02:48:57 Char0n smbd_audit[10735]: disconnected
Jan 14 02:49:21 Char0n smbd_audit[10735]: [2003/01/14 02:49:21, 0] 
smbd/oplock.c:oplock_break(684)

Jan 14 02:49:21 Char0n smbd_audit[10735]:   oplock_break: ERROR: 
oplock_break already sent for fil
e Win2K/floppy/Cookies/prf85.tmp (dev = 30e, inode = 113351, file_id 
= 1059)
Jan 14 02:49:21 Char0n smbd_audit[10735]: [2003/01/14 02:49:21, 0] 
smbd/open.c:open_mode_check(600
)
Jan 14 02:49:21 Char0n smbd_audit[10735]:   open_mode_check: FAILED 
when breaking oplock (3) on fi
le /home/profiles/Win2K/floppy/Cookies/prf85.tmp, dev = 30e, inode = 
113351
Jan 14 02:49:28 Char0n pam_winbind[10735]: user 'floppy' granted acces
Jan 14 02:49:28 Char0n pam_winbind[10735]: user 'floppy' granted acces
Jan 14 02:49:29 Char0n samba(pam_unix)[10735]: session opened for 
user floppy by (uid=0)
Jan 14 02:49:44 Char0n smbd_audit[10735]: VFS_INIT: vfs_ops loaded
Jan 14 02:49:44 Char0n smbd_audit[10735]: connect to service public 
by user floppy
Jan 14 02:49:44 Char0n smbd_audit[10735]: opendir .
Jan 14 02:49:44 Char0n smbd_audit[10735]: open Desktop.ini (fd -1) 
failed: No such file or directo
ry
Jan 14 02:49:45 Char0n smbd_audit[10735]: opendir .
Jan 14 02:49:45 Char0n smbd_audit[10735]: open Desktop.ini (fd -1) 
failed: No such file or directo
ry
Jan 14 02:49:45 Char0n smbd_audit[10735]: VFS_INIT: vfs_ops loaded
Jan 14 02:49:45 Char0n smbd_audit[10735]: connect to service public 
by user floppy
Jan 14 02:50:00 Char0n CROND[10748]: (root) CMD 
(   /usr/share/msec/promisc_check.sh)
Jan 14 02:50:06 Char0n smbd_audit[10735]: disconnected
Jan 14 02:50:06 Char0n samba(pam_unix)[10735]: session closed for 
user floppy
Jan 14 02:50:06 Char0n smbd[10735]: [2003/01/14 02:50:06, 0] 
smbd/oplock.c:oplock_break(684)
Jan 14 02:50:06 Char0n smbd[10735]:   oplock_break: ERROR: 
oplock_break already sent for file Win2
K/floppy/Cookies/prf8A.tmp (dev = 30e, inode = 113351, file_id = 2244)
Jan 14 02:50:06 Char0n smbd[10735]: [2003/01/14 02:50:06, 0] 
smbd/open.c:open_mode_check(600)
Jan 14 02:50:06 Char0n smbd[10735]:   open_mode_check: FAILED when 
breaking oplock (3) on file /ho
me/profiles/Win2K/floppy/Cookies/prf8A.tmp, dev = 30e, inode = 113351
Jan 14 02:50:09 Char0n smbd[10735]: [2003/01/14 02:50:09, 0] 
smbd/oplock.c:oplock_break(684)
Jan 14 02:50:09 Char0n smbd[10735]:   oplock_break: ERROR: 
oplock_break already sent for file Win2
K/floppy/Cookies/prf8E.tmp (dev = 30e, inode = 113362, file_id = 2405)
Jan 14 02:50:09 Char0n smbd[10735]: [2003/01/14 02:50:09, 0] 
smbd/open.c:open_mode_check(600)
Jan 14 02:50:09 Char0n smbd[10735]:   open_mode_check: FAILED when 
breaking oplock (3) on file /ho
me/profiles/Win2K/floppy/Cookies/prf8E.tmp, dev = 30e, inode = 113362
Jan 14 02:50:09 Char0n smbd[10735]: [2003/01/14 02:50:09, 0] 
smbd/oplock.c:oplock_break(699)
Jan 14 02:50:09 Char0n smbd[10735]:   ABORT : ABORT : recursion in 
oplock_break !!!!!
Jan 14 02:50:10 Char0n pam_winbind[10752]: user 'floppy' granted acces
Jan 14 02:50:10 Char0n samba(pam_unix)[10752]: session opened for 
user floppy by (uid=0)
Jan 14 02:50:39 Char0n samba(pam_unix)[10752]: session closed for 
user floppy

---

I'm running Mandrake Linux 9.0 with Samba release 2.2.7 and here's my 
conf file:

[global]
 status = Yes
   client code page = 852
   character set = ISO8859-2
      workgroup = NEXTGENERATION
      netbios name = CHARON
      server string = Samba Server PDC %v
        hosts allow = 127. 192.168.0. 10.
        interfaces = 127.0.0.1 192.168.0.1 10.0.0.1
        bind interfaces only = Yes
          min passwd length = 4
          password level = 8
          username level = 8
          encrypt passwords = Yes
          update encrypted = Yes
          null passwords = Yes
          pam password change = Yes
          obey pam restrictions = Yes
          unix password sync = Yes
            smb passwd file = /etc/samba/smbpasswd
            username map = /etc/samba/smbusers
            log file = /var/log/samba/log.%m
              log level = 3
              max log size = 50
                read raw = No
                write raw = No
                getwd cache = Yes
                max xmit = 8192
                socket options = TCP_NODELAY SO_RCVBUF=8192 
SO_SNDBUF=8192
                deadtime = 3
                name resolve order = wins lmhosts bcast
                  os level = 255
                  security = user
                  local master = Yes
                  domain master = Yes
                  preferred master = Yes
                  domain logons = Yes
                    dns proxy = No
                    wins support = Yes
                    wins proxy = Yes
                    load printers = No
                       guest account = guest
                       logon path = \\%L\Profiles\%a\%U
                       logon home = \\%L\%U
                       logon drive = U:
                       logon script = %U.bat
                        add user script = /usr/sbin/useradd -
s /bin/false -d /dev/null -c "Machine
 account" -n -M %u
                        delete user script = /usr/sbin/userdel -r %u
                        domain admin group = root @wheel
                        domain guest group = nobody @guest
                            hide local users = Yes
                            hide unreadable = Yes
                            map to guest = Never
                            share modes = Yes
                          preserve case = Yes
                          short preserve case = Yes
                          case sensitive = No
                          default case = Lower
                          mangle case = Yes
                          mangled names = Yes
                            time server = Yes
                            volume = Dolphin
                            admin log = Yes
                            profile acls = Yes
                            write cache size = 2048

[homes]
   comment = Home Directories
   browseable = no
   writable = yes
    vfs object = /usr/lib/samba/vfs/recycle.so
    vfs options= /etc/samba/recycle.conf

 [netlogon]
   comment = Network Logon Service
   path = /var/lib/samba/netlogon
    create mask = 0644
    directory mask = 0755
    root preexec = /usr/bin/ntlogon -u %U -g %G -o %a -
d /var/lib/samba/netlogon/
    root postexec = rm -f /var/lib/samba/netlogon/%U.bat

[Profiles]
    path = /home/profiles
    browseable = no
    guest ok = no
    writable = yes
    read only = no
     create mask = 0600
     directory mask = 0700
     root preexec = PROFILE=/home/profiles/%a/%U; if [ ! -e 
$PROFILE ]; \
     then mkdir -pm700 $PROFILE; chown %u $PROFILE;fi

[tmp]
   comment = Temporary file space
   path = /tmp
   read only = no

[public]
   comment = Public Stuff
   path = /public
   public = yes
   write list = @smbusers
    vfs object = /usr/lib/samba/vfs/audit.so

---

Don't think there's something wrong. I had tried many variants of 
config file and nothing helps. I read many on-line forums and find 
that one user on web have same problem, but from logouting of XP box 
and no response to it so I write this mail. Do you think you cloud 
help me? Many thanks :)

Bye, Bye :)

PS. User&Machine accounts on my linux box are of course created.
    I try to disable oplocks, but dosn't matter. Some profile files
    cannot be stored still and w2k client return same error.

                                           -Samuel aka FlOppY from SR



____________________________________
http://www.logofun.pobox.sk - urobte radost svojmu telefonu




More information about the samba mailing list