From nobody@FreeBSD.org  Thu Mar 25 08:44:23 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4FEE816A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <feczo@siodigit.hu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: mount_smbfs permission denied on file while opened but not locked by another client
X-Send-Pr-Version: www-2.3

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 25 08:50:05 PST 2004
>Closed-Date:    Mon Apr 26 13:25:31 PDT 2004
>Last-Modified:  Mon Apr 26 13:25:31 PDT 2004
>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:

From: Feczo <feczo@siodigit.hu>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: i386/64719: mount_smbfs permission denied on file while opened but not locked by another client
Date: Mon, 26 Apr 2004 11:31:10 +0200

 Looks like this has been fixed in 4.10-BETA
 
 
 --
 Szabolcs Feczak
State-Changed-From-To: open->closed 
State-Changed-By: simon 
State-Changed-When: Mon Apr 26 13:24:38 PDT 2004 
State-Changed-Why:  
Submitter reports that the problem has been fixed. 

Thanks for letting us know it has been fixed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=64719 
>Unformatted:
