Phantom sharename

View: New views
4 Messages — Rating Filter:   Alert me  

Phantom sharename

by mike5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 ~ $

Re: Phantom sharename

by John H Terpstra - Samba Team :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: Phantom sharename

by mike5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


John H Terpstra - Samba Team wrote:
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.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
Thanks for the quick reply - here is the output from testparm -sv
testparm.txt

Parent Message unknown Re: Phantom sharename

by John H Terpstra - Samba Team :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 11/06/2009 09:49 PM, Mike.Jeays@... wrote:

> John H Terpstra - Samba Team wrote:
>  
>> 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.
>> --
>> To unsubscribe from this list go to the following URL and read the
>> instructions:  https://lists.samba.org/mailman/options/samba
>>
>>
>>    
> Quoted from:
> http://old.nabble.com/Phantom-sharename-tp26208554p26209131.html
>
> I posted a reply with the output from testparms as requested - it still gives me no clue as to where the sharename 'l' came from. I would really appreciate it if you could spare a few minutes to look.  Thanks in advance!
>
>  
I should not have asked you to include the "-v" option.  In any case,
your smb.conf file distills down to the following (using testparm -s):

[global]
        netbios name = NAPOLEON
        server string = %h server (Samba, Ubuntu)
        map to guest = Bad User
        obey pam restrictions = Yes
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\s*\spassword:* %n\n
*Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        username map = /etc/samba/smbusers
        unix password sync = Yes
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        max open files = 10000
        printcap name = /etc/printcap
        domain logons = Yes
        dns proxy = No
        usershare max shares = 100
        panic action = /usr/share/samba/panic-action %d
        printing = bsd
        print command = lpr -r -P'%p' %s
        lpq command = lpq -P'%p'
        lprm command = lprm -P'%p' %j

[homes]
        comment = Home Directories
        read only = No
        create mask = 0755
        directory mask = 0775

[netlogon]
        comment = Network Logon Service
        path = /home/samba/netlogon
        guest ok = Yes
        share modes = No

[profiles]
        comment = Users profiles
        path = /home/samba/profiles
        create mask = 0600
        directory mask = 0700
        browseable = No
        browsable = No

[printers]
        comment = All Printers
        path = /var/spool/samba
        create mask = 0700
        guest ok = Yes
        printable = Yes
        browseable = No
        browsable = No

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers


As you can see, there is no share called "l" in the smb.conf file.
Suggest you execute "smbd -b" to see where the currently active instance
of smbd is getting its smb.conf file from.  Also, check if you have an
smb.conf file in "cd ~mike/.smb/"

I agree it has to be coming from somewhere, and if your smb.conf file is
not it, then the hunt is on.

- John T.

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba