[Pkg-samba-maint] Bug#612764: samba: After upgrading from lenny symlinks are not working anymore

Santiago Garcia Mantinan manty at debian.org
Thu Feb 10 13:28:18 UTC 2011


Package: samba
Version: 2:3.5.6~dfsg-3
Severity: important


This used to work with the server using lenny's samba, now it does this:

root at client:/# mount //server/shared /mnt -t cifs
Password: 
root at client:/# cd /mnt/etc
root at client:/mnt/etc# ls -l
ls: cannot access localtime: Permission denied
...
l?????????  ? ?    ?           ?            ? localtime
...

The original localtime file looks like this on the real filesystem:

# ls -l localtime 
lrwxrwxrwx 1 root root 23 ene 16  2008 localtime -> /usr/share/zoneinfo/UTC

This happens with all absolute path symlinks, it looks like the new wide
links option is cutting this but as I'd like Unix extensions enabled I
cannot have wide links enabled at the same time, so even though I define my
share with this config (having unix extensions = yes in the global config)

[shared]
   browseable = no
   writable = no
   public = yes
   follow symlinks = yes
   wide links = yes
   path = /shareddir/

I cannot get the absolute links to work, as I'm only sharing /shareddir
where I have a full linux tree.

This is how the mounted dir looks on the client (both client and server are
squeeze based):

//server/shareddir/ /mnt cifs rw,mand,relatime,unc=\\server\shareddir,username=root,uid=0,noforceuid,gid=0,noforcegid,addr=212.51.63.13,posixpaths,serverino,acl,rsize=16384,wsize=57344 0 0

I cannot see why should wide links be disabled with unix extensions on, I
mean... with unix extensions on the client is the one that has to follow the
symlinks, not the server, or am I missing something here?

I have read smb.conf manual page and I cannot see a way to return to the old
behaviour.

If you need any other tests or info just tell me, please.

-- System Information:
Debian Release: 6.0
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=gl_ES at euro, LC_CTYPE=gl_ES at euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages samba depends on:
ii  adduser                 3.112+nmu2       add and remove users and groups
ii  debconf [debconf-2.0]   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.2-10        Embedded GNU C Library: Shared lib
ii  libcap2                 1:2.19-3         support for getting/setting POSIX.
ii  libcomerr2              1.41.12-2        common error description library
ii  libcups2                1.4.4-7          Common UNIX Printing System(tm) - 
ii  libgssapi-krb5-2        1.8.3+dfsg-4     MIT Kerberos runtime libraries - k
ii  libk5crypto3            1.8.3+dfsg-4     MIT Kerberos runtime libraries - C
ii  libkrb5-3               1.8.3+dfsg-4     MIT Kerberos runtime libraries
ii  libldap-2.4-2           2.4.23-7         OpenLDAP libraries
ii  libpam-modules          1.1.1-6.1        Pluggable Authentication Modules f
ii  libpam-runtime          1.1.1-6.1        Runtime support for the PAM librar
ii  libpam0g                1.1.1-6.1        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-3   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-3   common files used by both the Samb
ii  update-inetd            4.38+nmu1        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/run_mode: daemons
  samba/generate_smbpasswd: true





More information about the Pkg-samba-maint mailing list