[Pkg-samba-maint] Bug#661487: samba: Setting file attributes when dos filemode=yes and user is not owner of file causes stale lock.
Fabio Muzzi
debianbugs at kurgan.org
Mon Feb 27 14:20:45 UTC 2012
Package: samba
Version: 2:3.5.6~dfsg-3squeeze6
Severity: important
Tags: upstream
This bug seems to be exactly the same as bug 7892 from Samba bugzilla, even if it seems to be resolved in 3.4 and 3.5 at the end of year 2010.
Link to Samba bugzilla: https://bugzilla.samba.org/show_bug.cgi?id=7892
When using "dos filemode=yes", if a user that is not the owner of a file on the samba share (but has the right to change its attributes because of the directive "dos filemode=yes") actually changes attributes to a file, then a stale lock appears on that file, that prevents any modification to that file. This lock remains present until the client that caused it disconnects or the process responsible for it (on the samba server) is killed. Please read the linked bug report on Samba bugzilla for a complete description of the issue.
The stale lock looks like this in smbstatus:
Locked files:
Pid Uid DenyMode Access R/W Oplock SharePath Name Time
--------------------------------------------------------------------------------------------------
28376 1000 DENY_NONE 0x82 WRONLY NONE /ud0/discone appunti kiss.txt Mon Feb 27 14:58:25 2012
I have run the tests in two different environments, with Win XP pro 32 bit and Win 7 home clients, and the bug is 100% reproducible. Servers are both Debian Squeeze 64 bit.
-- System Information:
Debian Release: 6.0.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages samba depends on:
ii adduser 3.112+nmu2 add and remove users and groups
ii debconf [debconf- 1.5.36.1 Debian configuration management sy
ii libacl1 2.2.49-4 Access control list shared library
ii libattr1 1:2.4.44-2 Extended attribute shared library
ii libc6 2.11.3-3 Embedded GNU C Library: Shared lib
ii libcap2 1:2.19-3 support for getting/setting POSIX.
ii libcomerr2 1.41.12-4stable1 common error description library
ii libcups2 1.4.4-7+squeeze1 Common UNIX Printing System(tm) -
ii libgssapi-krb5-2 1.8.3+dfsg-4squeeze5 MIT Kerberos runtime libraries - k
ii libk5crypto3 1.8.3+dfsg-4squeeze5 MIT Kerberos runtime libraries - C
ii libkrb5-3 1.8.3+dfsg-4squeeze5 MIT Kerberos runtime libraries
ii libldap-2.4-2 2.4.23-7.2 OpenLDAP libraries
ii libpam-modules 1.1.1-6.1+squeeze1 Pluggable Authentication Modules f
ii libpam-runtime 1.1.1-6.1+squeeze1 Runtime support for the PAM librar
ii libpam0g 1.1.1-6.1+squeeze1 Pluggable Authentication Modules l
ii libpopt0 1.16-1 lib for parsing cmdline parameters
ii libtalloc2 2.0.1-1 hierarchical pool based memory all
ii libwbclient0 2:3.5.6~dfsg-3squeeze6 Samba winbind client library
ii lsb-base 3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
ii procps 1:3.2.8-9 /proc file system utilities
ii samba-common 2:3.5.6~dfsg-3squeeze6 common files used by both the Samb
ii update-inetd 4.38+nmu1+squeeze1 inetd configuration file updater
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
Versions of packages samba recommends:
ii logrotate 3.7.8-6 Log rotation utility
Versions of packages samba suggests:
pn ctdb <none> (no description available)
pn ldb-tools <none> (no description available)
ii openbsd-inetd [inet-superse 0.20080125-6 The OpenBSD Internet Superserver
pn smbldap-tools <none> (no description available)
-- debconf information:
samba/tdbsam: false
samba/generate_smbpasswd: true
samba/run_mode: daemons
More information about the Pkg-samba-maint
mailing list