[Samba] printing impossible on win98 and samba 3.0.10

Erik Thiele erik at thiele-hydraulik.de
Mon Jan 31 07:28:52 GMT 2005


Hello,

i am using net-fs/samba-3.0.10 on an updated gentoo linux on x86 machine.
recently i was using some older version, probably 3.0.9
i didn't change my smb.conf but now printing from windows 98 clients does
not work anymore.

the errormessage on win98 is (translated from german):

Error when writing on \\master\stylus1160 vor printer (EPSON Stylus Color 1160):
The network printer ist not anymore available. Call the system administrator
or use another printer.

printing from windows xp to the same samba server works without problems.

/var/log/samba/log.win98host:

[2005/01/31 07:47:48, 1] smbd/service.c:make_connection_snum(648)
  scancomp (192.168.30.66) connect to service HL1670N initially as user erik (uid=1000, gid=1000) (pid 25074)
[2005/01/31 07:47:48, 0] printing/printing_db.c:get_print_db_byname(40)
  PANIC: assert failed at printing/printing_db.c(40)
[2005/01/31 07:47:48, 0] lib/util.c:smb_panic2(1403)
  PANIC: assert failed
[2005/01/31 07:47:48, 0] lib/util.c:smb_panic2(1411)
  BACKTRACE: 1 stack frames:
   #0 /usr/sbin/smbd(smb_panic2+0xfc) [0x81ca6fe]

some minute later next try:

[2005/01/31 07:49:08, 1] smbd/service.c:make_connection_snum(648)
  scancomp (192.168.30.66) connect to service HL1670N initially as user erik (uid=1000, gid=1000) (pid 27350)
[2005/01/31 07:49:08, 0] printing/printing_db.c:get_print_db_byname(40)
  PANIC: assert failed at printing/printing_db.c(40)
[2005/01/31 07:49:08, 0] lib/util.c:smb_panic2(1403)
  PANIC: assert failed
[2005/01/31 07:49:08, 0] lib/util.c:smb_panic2(1411)
  BACKTRACE: 1 stack frames:
   #0 /usr/sbin/smbd(smb_panic2+0xfc) [0x81ca6fe]

next try:

[2005/01/31 08:00:06, 1] smbd/service.c:make_connection_snum(648)
  scancomp (192.168.30.66) connect to service HL1670N initially as user erik (uid=1000, gid=1000) (pid 28404)
[2005/01/31 08:00:21, 0] printing/printing_db.c:get_print_db_byname(40)
  PANIC: assert failed at printing/printing_db.c(40)
[2005/01/31 08:00:21, 0] lib/util.c:smb_panic2(1403)
  PANIC: assert failed
[2005/01/31 08:00:21, 0] lib/util.c:smb_panic2(1411)
  BACKTRACE: 1 stack frames:
   #0 /usr/sbin/smbd(smb_panic2+0xfc) [0x81ca6fe]

next try:

[2005/01/31 08:19:27, 1] smbd/service.c:make_connection_snum(648)
  scancomp (192.168.30.66) connect to service stylus1160 initially as user erik (uid=1000, gid=1000) (pid 29031)
[2005/01/31 08:19:27, 0] printing/printing_db.c:get_print_db_byname(40)
  PANIC: assert failed at printing/printing_db.c(40)
[2005/01/31 08:19:27, 0] lib/util.c:smb_panic2(1403)
  PANIC: assert failed
[2005/01/31 08:19:27, 0] lib/util.c:smb_panic2(1411)
  BACKTRACE: 1 stack frames:
   #0 /usr/sbin/smbd(smb_panic2+0xfc) [0x81ca6fe]


and so on.



this is my smb.conf:


[global]
        netbios name = MASTER
        workgroup = MYDOMAIN
        passdb backend = ldapsam:ldap://ldap.thiele.lan
        hosts allow = 192.168.30.0/255.255.255.0 127.0.0.1
        local master = yes
        log file = /var/log/samba/log.%m
        os level = 33
        preferred master = yes
        security = user
        username map = /etc/samba/smbusers
        wins support = yes
        load printers = yes
        printing = cups
        domain master = yes
        domain logons = yes
        logon path = \\%N\profiles\%U
        logon drive = H:
        logon home = \\%N\%U
        logon script = %m_%U_logon.bat
        bind interfaces only = yes
        interfaces = eth0 lo
        ldap admin dn = "cn=samba,ou=DSA,dc=mydomain,dc=de"
        ldap delete dn = yes
        ldap user suffix = ou=People
        ldap group suffix = ou=Group
        ldap machine suffix = ou=Computers
        ldap suffix = dc=mydomain,dc=de
        add user script = /usr/share/samba/scripts/smbldap-useradd -m "%u"
        add machine script = /usr/share/samba/scripts/smbldap-useradd -w "%u"
        add group script = /usr/share/samba/scripts/smdldap-groupadd -p "&g"
        add user to group script = /usr/share/samba/scripts/smbldap-groupmod -m "%u" "%g"
        delete user from group script = /usr/share/samba/scripts/smbldap-usermod -x "%u" "%g"
        set primary group script = /usr/share/samba/scripts/smbldap-usermod -g "%g" "%u"
        delete user script = /usr/share/samba/scripts/smbldap-userdel "%u"
        delete group script = /usr/share/samba/scripts/smbldap-groupdel "%g"
        time server = yes
        dos charset = CP850
        unix charset = UTF-8
        display charset = LOCALE

[netlogon]
path = /mydir/netlogon
read only = yes

[profiles]
path = /mydir/profiles
read only = no
create mask = 0600
directory mask = 0700
guest ok = yes
profile acls = yes
csc policy = disable
force user = %U
valid users = %U @"Domain Admins"

[homes]
comment = Home Verzeichnisse
# (only real owner may access) valid users = %S
read only = No
browseable = No
veto files = /.*/
create mask = 000
force create mode = 600
directory mask = 000
force directory mode = 700

[opusshare]
        comment = OPUS Share
        path = /mydir/opusshare
        read only = no
        create mask = 000
        force create mode = 660
        directory mask = 000
        force directory mode = 770
        force group = +opus

[printers]
comment = Alle Drucker
printcap name = cups
path = /var/spool/samba
browseable = no
public = yes
guest ok = yes
writeable = no
printable = yes
create mode = 0700
cups options = "raw"

[CDs]
  comment = CDROM Kopien
  path = /mydir/cdcopy
  guest ok = yes

[Archiv]
  comment = Archiv readonly
  path = /mydir/archiv
  only user = yes
  username = ewald

[qmhandbuch]
  comment = QM Handbuch
  path = /mydir/qmhandbuch
  guest ok = yes

[datenblatt]
  comment = Datenblatt
  path = /mydir/datenblatt
  writeable = yes
  create mask = 0664
  directory mask = 0775

[Software]
  comment = DOS und WINDOWS Software
  path = /mydir/software
  guest ok = yes

[workstat]
  comment = Thiele workstat Verzeichnis
  path = /mydir/workstat
  guest ok = yes
  writeable = yes
  create mask = 000
  force create mode = 666
  directory mask = 000
  force directory mode = 777
  force user = nobody
  force group = nobody



More information about the samba mailing list