Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Mar 2004 08:44:22 -0800 (PST)
From:      Feczak Szabolcs <feczo@siodigit.hu>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   i386/64719: mount_smbfs permission denied on file while opened but not locked by another client
Message-ID:  <200403251644.i2PGiMhF096094@www.freebsd.org>
Resent-Message-ID: <200403251650.i2PGo5c6053269@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403251644.i2PGiMhF096094>