[Samba] Samba 2.2.8a and print$

fanabe at tin.it fanabe at tin.it
Wed Feb 18 12:03:41 GMT 2004


Hi all,

My name is Giuliano and I'm writing from Italy.
I contacting you because I have a question.

I use SuSE Pro 9.0.

I have configured Samba 2.2.8a like PDC in a lan with many microsoft client.
I use windows 95/98/ME/NT/2000/XP clients and I haven't anything problem.
My only problem is with [print$] directive because the downloaded the printer
driver don't run.

1° step:

This is my smb.conf file.

[global]
        default = lavoro
        time server = Yes
        socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
        os level = 65
        server string = Server Centrale
        domain logons = Yes
        local master = Yes
        domain master = Yes
        preferred master = Yes
        path = /home/lavoro
        domain admin group = @users root
        log level = 1
        syslog = 0
        security = user
        passwd program = /usr/bin/passwd %u
        add user script = /usr/sbin/useradd -g nogroup -c "Machine Account"
-d /dev/null -s /bin/false %m$
        unix extensions = Yes
        netbios name = server
        encrypt passwords = Yes
        auto services = lavoro
        printer admin = @users root
        show add printer wizard = yes
        printcap name = CUPS
        printing = CUPS
        workgroup = AIKO
        logon path = \\%L\profiles\%U
        logon home = \\%L\%U\profile
        logon drive = H:
        logon path = \\%L\profiles\%U
        logon home = \\%L\%U\profile
        logon drive = H:
        logon script = netlogon.bat
        profile acls = Yes
        veto files = /*.eml/*.nws/riched20.dll/*.{*}/

[homes]
        comment = Directory Personale
        path = /home/%U
        valid users = %S
        browseable = No
        writeable = Yes
        create mask = 0640
        directory mask = 0750

[printers]
        comment = All Printers   
        path = /home/drivers
        printable = Yes
        create mask = 0600
        browseable = Yes
        guest ok = Yes
        print command = /usr/bin/lpr -o raw -P%p -r %s
        lpq command = /usr/bin/lpstat -o%p
        lprm command = /usr/bin/cancel %p-%j
        queuepause command = /usr/bin/disable %p
        queueresume command = /usr/bin/enable %p


[print$]
        comment = Printer Drivers
        path = /home/drivers
        guest ok = yes
        browseable = yes
        write list = @users root
        force group = users
        force group = ntadmin
        create mask = 0664
        directory mask = 0775

[lavoro]
        comment = Directory di lavoro
        path = /home/lavoro
        writable = Yes
        create mask = 0744
        directory mask = 0744

 [netlogon]
       comment = Network Logon Service
       path = /home/netlogon
       browseable = No

[profiles]
       comment = Network Profiles Service
       path = /home/profiles
       profile acls = yes
       browseable = No
       read only = No
       create mask = 0600
       directory mask = 0700

[cdrom]
       comment = Lettore CD-ROM Server Centrale
       path = /media/cdrom
       locking = No
       preexec = /bin/mount /media/cdrom
       postexec = /bin/umount /media/cdrom

2° step:

This is my print$ directory:

drwxrwxr-x    4 root     users         120 Feb 12 20:20 drivers

and into it I have:

drwxrwxr-x    2 root     users         752 Feb 12 20:17 W32X86
drwxrwxr-x    2 root     users         848 Jan 25 17:09 WIN40
-rwxrwxr-x    1 root     users         250 Jan 25 17:14 control

This is my control file:

[common]
name=HP3420
version=2.0
display_name="HP 3420 Usb"

[WIN40]
inf_fname=hpf3420x.inf
manufacturer="Hewlett-Packard"
model="hp deskjet 3420 series"

[W32X86]
inf_fname=hpf3420k.inf
manufacturer="Hewlett-Packard"
model="hp deskjet 3420 series"

The printer is a HP 3420 USB.

In the W32X86 I have these files:

linux:/home/drivers # cd  W32X86/
linux:/home/drivers/W32X86 # ll
total 14646
drwxrwxr-x    2 root     users         752 Feb 12 20:17 .
drwxrwxr-x    4 root     users         120 Feb 18 11:32 ..
-rwxrwxr-x    1 root     users       29940 Jan 25 16:21 hpf2n007.dat
-rwxrwxr-x    1 root     users        4156 Jan 25 16:20 hpf3420k.inf
-rwxrwxr-x    1 root     users      113689 Jan 25 16:24 hpfuih07.hlp
-rwxrwxr-x    1 root     users      200704 Jan 25 16:24 hpz2ku07.dll
-rwxrwxr-x    1 root     users      245760 Jan 25 16:24 hpzcfg07.exe
-rwxrwxr-x    1 root     users      208896 Jan 25 16:20 hpzcoi07.dll
-rwxrwxr-x    1 root     users      270336 Jan 25 16:24 hpzcon07.dll
-rwxrwxr-x    1 root     users      847872 Jan 25 16:25 hpzeng07.exe
-rwxrwxr-x    1 root     users      761856 Jan 25 16:21 hpzimc07.dll
-rwxrwxr-x    1 root     users      204800 Jan 25 16:21 hpzime07.dll
-rwxrwxr-x    1 root     users      196608 Jan 25 16:21 hpzjui07.dll
-rwxrwxr-x    1 root     users      299008 Jan 25 16:24 hpzntp07.dll
-rwxrwxr-x    1 root     users      319488 Jan 25 16:21 hpzpre07.exe
-rwxrwxr-x    1 root     users     9084928 Jan 25 16:24 hpzr3207.dll
-rwxrwxr-x    1 root     users      417792 Jan 25 16:24 hpzrp307.dll
-rwxrwxr-x    1 root     users      348160 Jan 25 16:21 hpzslk07.dll
-rwxrwxr-x    1 root     users      184386 Jan 25 16:21 hpzsnt07.dll
-rwxrwxr-x    1 root     users      372736 Jan 25 16:25 hpzstc07.exe
-rwxrwxr-x    1 root     users      172032 Jan 25 16:21 hpzstw07.exe
-rwxrwxr-x    1 root     users       73728 Jan 25 16:21 hpztbi07.dll
-rwxrwxr-x    1 root     users      188416 Jan 25 16:20 hpztbu07.exe
-rwxrwxr-x    1 root     users      430080 Jan 25 16:24 hpztbx07.exe

and in the WIN40 these:

-rwxrwxr-x    1 root     users       29940 Jan 25 16:49 hpf2n007.dat*
-rwxrwxr-x    1 root     users        3363 Jan 25 16:53 hpf3420x.inf*
-rwxrwxr-x    1 root     users      113689 Jan 25 16:50 hpfuih07.hlp*
-rwxrwxr-x    1 root     users      128000 Jan 25 16:49 hpz9xd07.drv*
-rwxrwxr-x    1 root     users      203088 Jan 25 16:50 hpz9xp07.dll*
-rwxrwxr-x    1 root     users      245760 Jan 25 16:49 hpzcfg07.exe*
-rwxrwxr-x    1 root     users      270336 Jan 25 16:49 hpzcon07.dll*
-rwxrwxr-x    1 root     users      847872 Jan 25 16:49 hpzeng07.exe*
-rwxrwxr-x    1 root     users      262144 Jan 25 16:50 hpzfac07.dll*
-rwxrwxr-x    1 root     users      761856 Jan 25 16:49 hpzimc07.dll*
-rwxrwxr-x    1 root     users      204800 Jan 25 16:53 hpzime07.dll*
-rwxrwxr-x    1 root     users      196608 Jan 25 16:48 hpzjui07.dll*
-rwxrwxr-x    1 root     users      319488 Jan 25 16:49 hpzpre07.exe*
-rwxrwxr-x    1 root     users     9084928 Jan 25 16:53 hpzr3207.dll*
-rwxrwxr-x    1 root     users      373776 Jan 25 16:48 hpzrp107.dll*
-rwxrwxr-x    1 root     users      417792 Jan 25 16:49 hpzrp307.dll*
-rwxrwxr-x    1 root     users      106496 Jan 25 16:53 hpzs9x07.dll*
-rwxrwxr-x    1 root     users      348160 Jan 25 16:50 hpzslk07.dll*
-rwxrwxr-x    1 root     users      372736 Jan 25 16:50 hpzstc07.exe*
-rwxrwxr-x    1 root     users       98304 Jan 25 16:48 hpzstsin.dll*
-rwxrwxr-x    1 root     users      172032 Jan 25 16:49 hpzstw07.exe*
-rwxrwxr-x    1 root     users       73728 Jan 25 16:48 hpztbi07.dll*
-rwxrwxr-x    1 root     users      188416 Jan 25 16:49 hpztbu07.exe*
-rwxrwxr-x    1 root     users      430080 Jan 25 16:50 hpztbx07.exe*
-rwxrwxr-x    1 root     users       12288 Jan 25 16:50 usbmon.dll*
3° Step: Win2000SP4

>From  the printer share of samba server I use "Add printer Wizard" APW
and the APW find the remote server printer and "Samba printer port" but
when I presse the "Next" button I have the windows "Disk driver" and doesn't
download the driver from the server.

4° I have creted the directory W32X86 and WIN40 with imprints tool.

5° In the log.smb I find this:
printing/print_cups.c:cups_printername_ok(388)
  Unable to get printer status for ::{2227a280-3aea-1069-a2de-08002b30309d}
- client-error-not-found

6° In the CUPS log file I have this error:

get_printer_attrs: resource name '/printers/::{2227a280-3aea-1069-a2de-08002b30309d}'
no good!


I don't understand the problem.
Is samba ? is cups ? is windows ? is a bug ? or what ????

I have try with SuSE8.2Pro with 2.2.7a and 2.2.8a (from suse fpt project)
but doesn't change anything.

Can you help me,please.

Thanking in advance and sorry for my english.

Pellegrini Giuliano.









More information about the samba mailing list