From owner-freebsd-i386@FreeBSD.ORG Thu Mar 25 08:50:06 2004 Return-Path: Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25E3F16A4CE for ; Thu, 25 Mar 2004 08:50:06 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 044D743D48 for ; Thu, 25 Mar 2004 08:50:06 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i2PGo5bv053270 for ; Thu, 25 Mar 2004 08:50:05 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i2PGo5c6053269; Thu, 25 Mar 2004 08:50:05 -0800 (PST) (envelope-from gnats) Resent-Date: Thu, 25 Mar 2004 08:50:05 -0800 (PST) Resent-Message-Id: <200403251650.i2PGo5c6053269@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Feczak Szabolcs Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FEE816A4CE for ; Thu, 25 Mar 2004 08:44:23 -0800 (PST) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4892543D2D for ; Thu, 25 Mar 2004 08:44:23 -0800 (PST) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i2PGiM72096095 for ; Thu, 25 Mar 2004 08:44:22 -0800 (PST) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.10/8.12.10/Submit) id i2PGiMhF096094; Thu, 25 Mar 2004 08:44:22 -0800 (PST) (envelope-from nobody) Message-Id: <200403251644.i2PGiMhF096094@www.freebsd.org> Date: Thu, 25 Mar 2004 08:44:22 -0800 (PST) From: Feczak Szabolcs To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: i386/64719: mount_smbfs permission denied on file while opened but not locked by another client X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Mar 2004 16:50:06 -0000 >Number: 64719 >Category: i386 >Synopsis: mount_smbfs permission denied on file while opened but not locked by another client >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Mar 25 08:50:05 PST 2004 >Closed-Date: >Last-Modified: >Originator: Feczak Szabolcs >Release: FreeBSD 4.9-RELEASE i386 >Organization: Siodigit >Environment: FreeBSD backup.sdi.hu 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Mon Oct 27 17:51:09 GMT 2003 root@freebsd-stable.sentex.ca:/usr/obj/usr/src/sys/GENERIC i386 >Description: after mount_smbfs permission denied while trying to access a file on the mounted filesystem, which has been opened from the remote host by another client, but not locked according to smbstatus Although If I mount with shlight from ports it works great though it uses nfs, not smbfs to access samba. And from smbclient I can also get or cat the file ! On 5.0-Release and other systems I have no problem with this ... looks like only 4.9 or maybe older versions are affected, though I have tested only these two versions >How-To-Repeat: #on client1: mount_smbfs -I 192.168.1.1 //user@server/data /mnt/smb #on client2: mount_smbfs -I 192.168.1.1 //user@server/data /mnt/smb soffice /mnt/smb/locktest/example.sxc #on smb-server: smbstatus Locked files: Pid DenyMode Access R/W Oplock Name -------------------------------------------------------------- 62524 DENY_NONE 0x3 RDWR NONE /server/locktest/example.sxc Thu Mar 25 17:32:51 2004 #on client1: cat /mnt/smb/locktest/example.sxc cat: /mnt/smb/locktest/example.sxc: Permission denied ls -l /mnt/smb/locktest/example.sxc -rwxr-xr-x 1 user user 5184 Mar 22 18:09 /mnt/smb/ocktest/example.sxc whoami root >Fix: Unknown >Release-Note: >Audit-Trail: >Unformatted: