[Samba] config backend = registry; printers not shown

Zoolook nbensa at gmail.com
Mon Dec 21 21:07:51 MST 2009


Hello,

I couldn't find an answer to this small question in google/man/faq:
why do I use lose my printer if I use registry backend?


config backend = file (full config file below):

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

$ smbclient -kL //venkman
...
        EPSON_Stylus_CX5900 Printer   EPSON Stylus CX5900
...


config backend = files, delete everything except [printers] and
include "include = registry":

...
[global]
        include = registry

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

$ smbclient -kL //venkman
...
        EPSON_Stylus_CX5900 Printer   EPSON Stylus CX5900
...


**BUT** if I change to config backend = registry, I no longer see my printer

...
[global]
       config backend = registry
...

$ smbclient  -kL //venkman
Domain=[BENSA] OS=[Unix] Server=[Samba 3.4.0]

        Sharename       Type      Comment
        ---------       ----      -------
        IPC$            IPC       IPC Service (venkman server (Samba, Ubuntu))
        zoolook         Disk      Home Directory
        print$          Disk      Printer Drivers
Domain=[BENSA] OS=[Unix] Server=[Samba 3.4.0]

        Server               Comment
        ---------            -------
        VENKMAN              venkman server (Samba, Ubuntu)

        Workgroup            Master
        ---------            -------
        BENSA                VENKMAN


Why? (and no, disabling kerberos makes no difference...)

samba is 2:3.4.0-3ubuntu5.3, ubuntu karmic.

Here's my net conf list

$ sudo net conf list
[global]
        workgroup = BENSA
        server string = %h server (Samba, Ubuntu)
        map to guest = Bad User
        obey pam restrictions = Yes
        passdb backend = ldapsam:ldap://localhost
        dedicated keytab file = /etc/samba/smb.keytab
        kerberos method = dedicated keytab
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        announce version = 5.9
        time server = Yes
        add user script = /usr/sbin/smbldap-useradd -m '%u'
        delete user script = /usr/sbin/smbldap-userdel '%u'
        add group script = /usr/sbin/smbldap-groupadd '%g'
        delete group script = /usr/sbin/smbldap-userdel '%g'
        add user to group script = /usr/sbin/smbldap-groupmod -m '%u' '%g'
        delete user from group script = /usr/sbin/smbldap-groupmod -x '%u' '%g'
        set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u'
        add machine script = /usr/sbin/smbldap-useradd -t 0 -w '%u'
        domain logons = Yes
        os level = 255
        preferred master = Yes
        dns proxy = No
        wins support = Yes
        ldap admin dn = cn=admin,dc=bensa,dc=ar
        ldap group suffix = ou=groups
        ldap idmap suffix = ou=idmap
        ldap machine suffix = ou=machines
        ldap passwd sync = yes
        ldap suffix = dc=bensa,dc=ar
        ldap ssl = no
        ldap user suffix = ou=users
        usershare allow guests = Yes
        panic action = /usr/share/samba/panic-action %d
        realm = BENSA.AR

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

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

[homes]
        comment = Home Directory
        browseable = No


More information about the samba mailing list