[Pkg-samba-maint] Bug#525321: samba: "force create mode" option no longer works

me at nikosapi.org me at nikosapi.org
Thu Apr 23 17:48:30 UTC 2009


Package: samba
Version: 2:3.2.5-4lenny2
Severity: normal

After upgrading to lenny (from etch) it seems that the "force create mode"
option no longer works. However, if I downgrade samba to 3.0.24-6etch10 the
option works as it should. Here's an example:

nikosapi at kubuntubox:~$ touch testfile; chmod 600 testfile
nikosapi at kubuntubox:~$ mv testfile /mnt/smb/archives/

teh-server:~# ls -l /mnt/md1/archives/testfile 
-rw------- 1 samba samba 0 2009-04-23 11:23 /mnt/md1/archives/testfile

When using the older version of samba, the permissions of that file would
have been -rw-rw-r-- which is consistent with what I have in my config file.

The relevant bits from my /etc/samba/smb.conf:
[global]
        ----snip----
        force user = samba
        force group = samba

        directory mask = 0775
        create mask = 0664
        force create mode = 0664
        force directory mode = 0775

        browseable = yes
        guest ok = yes


-- System Information:
Debian Release: 5.0.1
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages samba depends on:
ii  adduser         3.110                    add and remove users and groups
ii  debconf [debcon 1.5.24                   Debian configuration management sy
ii  libacl1         2.2.47-2                 Access control list shared library
ii  libattr1        1:2.4.43-2               Extended attribute shared library
ii  libc6           2.7-18                   GNU C Library: Shared libraries
ii  libcomerr2      1.41.3-1                 common error description library
ii  libcups2        1.3.8-1lenny5            Common UNIX Printing System(tm) - 
ii  libgnutls26     2.4.2-6+lenny1           the GNU TLS library - runtime libr
ii  libkrb53        1.6.dfsg.4~beta1-5lenny1 MIT Kerberos runtime libraries
ii  libldap-2.4-2   2.4.11-1                 OpenLDAP libraries
ii  libpam-modules  1.0.1-5+lenny1           Pluggable Authentication Modules f
ii  libpam-runtime  1.0.1-5+lenny1           Runtime support for the PAM librar
ii  libpam0g        1.0.1-5+lenny1           Pluggable Authentication Modules l
ii  libpopt0        1.14-4                   lib for parsing cmdline parameters
ii  libtalloc1      1.2.0~git20080616-1      hierarchical pool based memory all
ii  libwbclient0    2:3.2.5-4lenny2          client library for interfacing wit
ii  logrotate       3.7.1-5                  Log rotation utility
ii  lsb-base        3.2-20                   Linux Standard Base 3.2 init scrip
ii  procps          1:3.2.7-11               /proc file system utilities
ii  samba-common    2:3.2.5-4lenny2          Samba common files used by both th
ii  update-inetd    4.31                     inetd configuration file updater
ii  zlib1g          1:1.2.3.3.dfsg-12        compression library - runtime

samba recommends no packages.

Versions of packages samba suggests:
pn  ldb-tools                   <none>       (no description available)
ii  openbsd-inetd [inet-superse 0.20080125-2 The OpenBSD Internet Superserver
pn  smbldap-tools               <none>       (no description available)

-- debconf information:
  samba/run_mode: daemons
  samba/tdbsam: false
  samba/generate_smbpasswd: false





More information about the Pkg-samba-maint mailing list