[Pkg-samba-maint] Bug#416185: samba-common: net rpc share causes segfault when invoked with -l parameter on windows hosts

Tommaso Colombo zibo86 at hotmail.com
Wed May 9 23:28:33 UTC 2007


Package: samba-common
Version: 3.0.24-6
Followup-For: Bug #416185

When trying to list the shares on remote windows hosts, the following
error occurs:

$ net share -U Guest% -l -S mary-space

Enumerating shared resources (exports) on remote server:


Share name   Type     Description
----------   ----     -----------
Segmentation fault


The same command without the -l options succeeds, and so do the
smbclient -L command and the net command using the rap protocol instead
of the rpc protocol:

$ net share -U Guest% -S mary-space
IPC$
D$
iTunes Music
ADMIN$
C$


$ smbclient -U Guest% -L mary-space
Domain=[MARY-SPACE] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Sharename       Type      Comment
        ---------       ----      -------
        IPC$            IPC       IPC remoto
        D$              Disk      Condivisione predefinita
        iTunes Music    Disk
        ADMIN$          Disk      Amministrazione remota
        C$              Disk      Condivisione predefinita
Domain=[MARY-SPACE] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------


$ net rap share -U Guest% -l -S mary-space

Enumerating shared resources (exports) on remote server:


Share name   Type     Description
----------   ----     -----------
IPC$         IPC      IPC remoto
D$           Disk     Condivisione predefinita
iTunes Music Disk
ADMIN$       Disk     Amministrazione remota
C$           Disk     Condivisione predefinita


The problem occurs only when quering windows host. The same command
works just fine when used on linux hosts

$ net share -U Guest% -l -S mirtexxan

Enumerating shared resources (exports) on remote server:


Share name   Type     Description
----------   ----     -----------
film         Disk
IPC$         IPC      IPC Service (mirtexxan server)
ADMIN$       IPC      IPC Service (mirtexxan server)



The problem seems to be amd64-specific, but I only own a x86 box and an
an amd64 box, so I can't be sure.
I will do a fresh install of Debian to test wether this error depends on
specific configurations.

Regards,

Tommaso


-- /etc/samba/smb.conf
[global]
workgroup = SPACE
server string =
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
invalid users = root
socket options = TCP_NODELAY
map to guest = Bad User
restrict anonymous = no
guest ok = yes
domain master = no
preferred master = no
max protocol = NT
acl compatibility = winnt
ldap ssl = No
server signing = Auto


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.18-4-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/bash

Versions of packages samba-common depends on:
ii  debconf  1.5.13                          Debian configuration management sy
ii  libc6    2.3.6.ds1-13                    GNU C Library: Shared libraries
ii  libcomer 1.39+1.40-WIP-2006.11.14+dfsg-2 common error description library
ii  libkrb53 1.4.4-8                         MIT Kerberos runtime libraries
ii  libldap2 2.1.30-13.4                     OpenLDAP libraries
ii  libncurs 5.5-5                           Shared libraries for terminal hand
ii  libpam-m 0.79-4                          Pluggable Authentication Modules f
ii  libpopt0 1.10-3                          lib for parsing cmdline parameters
ii  libreadl 5.2-2                           GNU readline and history libraries

samba-common recommends no packages.




More information about the Pkg-samba-maint mailing list