[Samba] Phantom sharename

John H Terpstra jht at samba.org
Wed Nov 4 21:29:43 MST 2009


On 11/04/2009 09:47 PM, mike5 wrote:
> smbclient reports there is a sharename 'l' that points to
> /usr/local/Documents on the host, but there is no reference to it in the
> smb.conf file. I have puzzled over this for days - I must have missed
> something obvious.
>
> Here is the output from smbclient, followed by the smb.conf file with all
> the comments removed.
>
> napoleon 526 ~ $ smbclient -L localhost
> Enter mike's password: 
> Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.3.2]
>
>         Sharename       Type      Comment
>         ---------       ----      -------
>         homes           Disk      Home Directories
>         netlogon        Disk      Network Logon Service
>         print$          Disk      Printer Drivers
>         IPC$            IPC       IPC Service (napoleon server (Samba,
> Ubuntu))
>         mike            Disk      Home Directories
>         l               Disk      
> Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.3.2]
>
>         Server               Comment
>         ---------            -------
>         NAPOLEON             napoleon server (Samba, Ubuntu)
>
>         Workgroup            Master
>         ---------            -------
>         WORKGROUP            NAPOLEON
> napoleon 527 ~ $ 
> napoleon 527 ~ $ cat smb.conf
> [global]
>    workgroup = WORKGROUP
>    server string = %h server (Samba, Ubuntu)
> ;   wins server = w.x.y.z
>    dns proxy = no
> ;   name resolve order = lmhosts host wins bcast
> ;   interfaces = 127.0.0.0/8 eth0
> ;   bind interfaces only = yes
>    log file = /var/log/samba/log.%m
>    max log size = 1000
>    syslog = 0
>    panic action = /usr/share/samba/panic-action %d
>   security = user
>   username map = /etc/samba/smbusers
>    encrypt passwords = true
>    passdb backend = tdbsam
>    obey pam restrictions = yes
>    unix password sync = yes
>    passwd program = /usr/bin/passwd %u
>    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:*
> %n\n *password\supdated\ssuccessfully* .
>    pam password change = yes
> map to guest = bad user
>    domain logons = yes
> ;   logon path = \\%N\profiles\%U
> ;   logon script = logon.cmd
> ; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos ""
> %u
>    printing = bsd
>    printcap name = /etc/printcap
> ;   printing = cups
> ;   printcap name = cups
> ;   include = /home/samba/etc/smb.conf.%m
> ;   message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
> ;   idmap uid = 10000-20000
> ;   idmap gid = 10000-20000
> ;   template shell = /bin/bash
> ;   winbind enum groups = yes
> ;   winbind enum users = yes
> ;   usershare max shares = 100
>  [homes]
>     comment = Home Directories
>     browseable = yes
>     writeable = yes
>    read only = no
>    create mask = 0755
>    directory mask = 0775
> ;   valid users = %S
>  [netlogon]
>     comment = Network Logon Service
>     path = /home/samba/netlogon
>     guest ok = yes
>     read only = yes
>     share modes = no
> [profiles]
>    comment = Users profiles
>    path = /home/samba/profiles
>    guest ok = no
>    browseable = no
>    create mask = 0600
>    directory mask = 0700
> [printers]
>    comment = All Printers
>    browseable = no
>    path = /var/spool/samba
>    printable = yes
>    guest ok =  yes
>    read only = yes
>    create mask = 0700
> [print$]
>    comment = Printer Drivers
>    path = /var/lib/samba/printers
>    browseable = yes
>    read only = yes
>    guest ok = no
> ;[cdrom]
> ;   comment = Samba server's CD-ROM
> ;   read only = yes
> ;   locking = no
> ;   path = /cdrom
> ;   guest ok = yes
> ;   preexec = /bin/mount /cdrom
> ;   postexec = /bin/umount /cdrom
> napoleon 528 ~ $ 
>
>   
Please send us the output of:
    testparm -sv

Not what you *think* your smb.conf file is.  Testparm will report the
true contents of smb.conf as Samba sees it.

- John T.


More information about the samba mailing list