Solved

cups and samba, adding drivers

Posted on 2011-02-10
20
1,495 Views
Last Modified: 2012-05-11
i have samba and cups setup. I'm trying to install printer drivers so that I wouldn't have to install drivers on each individual windows workstation.

I'm getting this error when running cupsaddsmb:

# cupsaddsmb -v -U root -a

Running command: smbclient //localhost/print$ -N -A /tmp/4d5425af503b8 -c 'mkdir W32X86;put /tmp/4d5425a8a1f6f W32X86/frontdesk.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll'
Domain=[TEST.LOCAL] OS=[Unix] Server=[Samba 3.2.5]
NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86
putting file /tmp/4d5425a8a1f6f as \W32X86/frontdesk.ppd (154007.6 kb/s) (average 154015.1 kb/s)
putting file /usr/share/cups/drivers/ps5ui.dll as \W32X86/ps5ui.dll (142295.7 kb/s) (average 145646.1 kb/s)
putting file /usr/share/cups/drivers/pscript.hlp as \W32X86/pscript.hlp (260380000.0 kb/s) (average 149278.6 kb/s)
putting file /usr/share/cups/drivers/pscript.ntf as \W32X86/pscript.ntf (147953.9 kb/s) (average 148617.3 kb/s)
putting file /usr/share/cups/drivers/pscript5.dll as \W32X86/pscript5.dll (176253.7 kb/s) (average 153495.3 kb/s)

Running command: smbclient //localhost/print$ -N -A /tmp/4d5425af503b8 -c 'put /usr/share/cups/drivers/cups6.ini W32X86/cups6.ini;put /usr/share/cups/drivers/cupsps6.dll W32X86/cupsps6.dll;put /usr/share/cups/drivers/cupsui6.dll W32X86/cupsui6.dll'
Domain=[TEST.LOCAL] OS=[Unix] Server=[Samba 3.2.5]
putting file /usr/share/cups/drivers/cups6.ini as \W32X86/cups6.ini (720000.0 kb/s) (average inf kb/s)
putting file /usr/share/cups/drivers/cupsps6.dll as \W32X86/cupsps6.dll (125680000.0 kb/s) (average inf kb/s)
putting file /usr/share/cups/drivers/cupsui6.dll as \W32X86/cupsui6.dll (136720000.0 kb/s) (average inf kb/s)

Running command: rpcclient localhost -N -A /tmp/4d5425af503b8 -c 'adddriver "Windows NT x86" "frontdesk:pscript5.dll:frontdesk.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,frontdesk.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll"'
result was WERR_INVALID_PARAM

Unable to install Windows 2000 printer driver files (1)!

I tried everything I could find on the net but still can't get past it.

0
Comment
Question by:ion_
  • 11
  • 9
20 Comments
 
LVL 76

Expert Comment

by:arnold
ID: 34865009
0
 

Author Comment

by:ion_
ID: 34865980
I have two: HP LaserJet 5si and HP LaserJet CM4730

I want to be able to push the drivers to window clients like in your second link. I did the exact same steps but getting stuck with cupsaddsmb command
0
 
LVL 76

Expert Comment

by:arnold
ID: 34866239
Do you have the cups web interface available for access:
http://servername:631? Could you see what printers you have defined there?
Is your linux server a member of the AD domain (did you join it in)
Could you try using cupsaddsmb -v -U root printer to see whether you can publish one printer at a time where one printer might work while the other cause this problem?
0
 

Author Comment

by:ion_
ID: 34875012
yes i have web interface available. Yes I can see the printers defined and I can print the test page from there as well.

My linux server is the master domain controller.

"cupsaddsmb -v -U root printer" results in the same error. I tried for both printers.
0
 
LVL 76

Expert Comment

by:arnold
ID: 34875201
See if the below reference helps to address the error you received on the rpcclient directive.
http://ubuntuforums.org/showthread.php?t=1612536
Deals with whether the printers are defined within smb.conf
0
 

Author Comment

by:ion_
ID: 34875735
I already had this in my smb.conf:

[printers]
       comment = All Printers
       path = /var/spool/samba
       browseable = no
       public = yes              
       guest ok = yes                
       writable = no  
       printable = yes
#       printer admin = root
       write list = root, admin

but I tried commenting it all out and created another one just like in those instructions:

[my_printer_name]
   comment = Sir Printsalot
   printable = yes
   path = /var/spool/samba
   public = yes        
   guest ok = yes

ran cupsaddsmb, got the same error.

I noticed his line has "-c 'setdriver .... "
Mine says "... -c 'addriver ......, not sure what difference it makes but I tried copy/pasting the actual line
with the following highlighted changes, but still got the same error:

rpcclient localhost -N -A -U root%password -c 'setdriver "Windows NT x86" "frontdesk:pscript5.dll:frontdesk.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,frontdesk.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll"'
0
 
LVL 76

Expert Comment

by:arnold
ID: 34875987
Sorry to be going at the issue piecemeal, Do you have a global section where you set printing to cups?
http://www.cups.org/doc-1.1/sam.html#8_8_1

Why did you comment out the printer admin under the [printers]?
0
 

Author Comment

by:ion_
ID: 34876182
I commented out "printer admin" because testparm reported that this option is deprecated. Regardless, it makes no difference when it's enabled, I'm still getting the same error.

here's my smb.conf:

[global]

        workgroup = test.local
        passdb backend = tdbsam
      #vfs objects = extd_audit recycle
      add user script = /usr/sbin/useradd -m %u
      delete user script = /usr/sbin/userdel -r %u
      add group script = /usr/sbin/groupadd %g
      delete group script = /usr/sbin/groupdel %g
      add user to group script = /usr/sbin/groupmod -A %u %g
      delete user from group script = /usr/sbin/groupmod -R %u %g
      add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/nobody %u
      logon path =
      logon home =
      domain logons = Yes
      os level = 35
      preferred master = Yes
      domain master = Yes
      idmap uid = 15000-20000
      idmap gid = 15000-20000
      admin users = root
      write list = root, admin, @lpadmin
      load printers = yes
      printing = cups
      printcap name = cups


[homes]

        comment = Home Directory
        valid users = %S
        read only = No
        browseable = no


[shared]
        comment = Shared Drive
        path = /home/SHARES/shared
        browseable = yes
        read only = no
        public = no
        force create mode = 0770
        directory mask = 0770


[admin]
        path = /home
        browseable = no
        read only = no
        valid users = root, admin


[netlogon]

        comment = Network Logon Service
        path = /home/SHARES/samba/netlogon
        admin users = root
        valid users = %U
        guest ok = no
        browseable = no


[printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = no
        public = yes
        guest ok = yes
        writable = no
        printable = yes
        printer admin = root, admin, printadmin
        write list = root, admin


[print$]
        comment = Printer Drivers
        path = /etc/samba/drivers
        browseable = yes
        guest ok = no
        read only = yes
        write list = root, printadmin





----------------

and my cupsd.conf, just in case


LogLevel warning
SystemGroup lpadmin
# Allow remote access
Port 631
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseAddress @LOCAL
DefaultAuthType Basic
<Location />
  # Allow shared printing and remote administration...
  Order allow,deny
  Allow @LOCAL
</Location>
<Location /admin>
  # Allow remote administration...
  Order allow,deny
  Allow @LOCAL
</Location>
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  # Allow remote access to the configuration files...
  Order allow,deny
  Allow @LOCAL
</Location>
<Policy default>
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
0
 
LVL 76

Expert Comment

by:arnold
ID: 34878414
run testparm -v and see what that tells you.
http://www.openprinting.org/download/kpfeifle/SambaPrintHOWTO/Samba-HOWTO-Collection-3.0-PrintingChapter-11th-draft.html#6

I'll test something and will update.
0
 

Author Comment

by:ion_
ID: 34878843
# testparm -v
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[shared]"
Processing section "[dg_margins]"
Processing section "[netlogon]"
Processing section "[printers]"
WARNING: The "printer admin" option is deprecated
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_DOMAIN_PDC
Press enter to see a dump of your service definitions

[global]
        dos charset = CP850
        unix charset = UTF-8
        display charset = LOCALE
        workgroup = TEST.LOCAL
        realm =
        netbios name = DC1
        netbios aliases =
        netbios scope =
        server string = Samba 3.2.5
        interfaces =
        bind interfaces only = No
        config backend = file
        security = USER
        auth methods =
        encrypt passwords = Yes
        update encrypted = No
        client schannel = Auto
        server schannel = Auto
        allow trusted domains = Yes
        map to guest = Never
        null passwords = No
        obey pam restrictions = No
        password server = *
        smb passwd file = /etc/samba/smbpasswd
        private dir = /etc/samba
        passdb backend = tdbsam
        algorithmic rid base = 1000
        root directory =
        guest account = nobody
        enable privileges = Yes
        pam password change = No
        passwd program =
        passwd chat = *new*password* %n\n *new*password* %n\n *changed*
        passwd chat debug = No
        passwd chat timeout = 2
        check password script =
        username map =
        password level = 0
        username level = 0
        unix password sync = No
        restrict anonymous = 0
        lanman auth = No
        ntlm auth = Yes
        client NTLMv2 auth = No
        client lanman auth = No
        client plaintext auth = No
        preload modules =
        use kerberos keytab = No
        log level = 0
        syslog = 1
        syslog only = No
        log file =
        max log size = 5000
        debug timestamp = Yes
        debug prefix timestamp = No
        debug hires timestamp = No
        debug pid = No
        debug uid = No
        debug class = No
        enable core files = Yes
        smb ports = 445 139
        large readwrite = Yes
        max protocol = NT1
        min protocol = CORE
        min receivefile size = 0
        read raw = Yes
        write raw = Yes
        disable netbios = No
        reset on zero vc = No
        acl compatibility = auto
        defer sharing violations = Yes
        nt pipe support = Yes
        nt status support = Yes
        announce version = 4.9
        announce as = NT
        max mux = 50
        max xmit = 16644
        name resolve order = lmhosts wins host bcast
        max ttl = 259200
        max wins ttl = 518400
        min wins ttl = 21600
        time server = No
        unix extensions = Yes
        use spnego = Yes
        client signing = auto
        server signing = No
        client use spnego = Yes
        client ldap sasl wrapping = plain
        enable asu support = No
        svcctl list =
        deadtime = 0
        getwd cache = Yes
        keepalive = 300
        lpq cache time = 30
        max smbd processes = 0
        paranoid server security = Yes
        max disk size = 0
        max open files = 10000
        socket options = TCP_NODELAY
        use mmap = Yes
        hostname lookups = No
        name cache timeout = 660
        ctdbd socket =
        cluster addresses =
        clustering = No
        load printers = Yes
        printcap cache time = 750
        printcap name = cups
        cups server =
        iprint server =
        disable spoolss = No
        addport command =
        enumports command =
        addprinter command =
        deleteprinter command =
        show add printer wizard = Yes
        os2 driver map =
        mangling method = hash2
        mangle prefix = 1
        max stat cache size = 256
        stat cache = Yes
        machine password timeout = 604800
        add user script = /usr/sbin/useradd -m %u
        rename user script =
        delete user script = /usr/sbin/userdel -r %u
        add group script = /usr/sbin/groupadd %g
        delete group script = /usr/sbin/groupdel %g
        add user to group script = /usr/sbin/groupmod -A %u %g
        delete user from group script = /usr/sbin/groupmod -R %u %g
        set primary group script =
        add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/nobody %u
        shutdown script =
        abort shutdown script =
        username map script =
        logon script =
        logon path =
        logon drive =
        logon home =
        domain logons = Yes
        os level = 35
        lm announce = Auto
        lm interval = 60
        preferred master = Yes
        local master = Yes
        domain master = Yes
        browse list = Yes
        enhanced browsing = Yes
        dns proxy = Yes
        wins proxy = No
        wins server =
        wins support = No
        wins hook =
        kernel oplocks = Yes
        lock spin time = 200
        oplock break wait time = 0
        ldap admin dn =
        ldap delete dn = No
        ldap group suffix =
        ldap idmap suffix =
        ldap machine suffix =
        ldap passwd sync = no
        ldap replication sleep = 1000
        ldap suffix =
        ldap ssl =
        ldap timeout = 15
        ldap connection timeout = 2
        ldap page size = 1024
        ldap user suffix =
        ldap debug level = 0
        ldap debug threshold = 10
        eventlog list =
        add share command =
        change share command =
        delete share command =
        config file =
        preload =
        lock directory =
        pid directory = /var/run/samba
        utmp directory =
        wtmp directory =
        utmp = No
        default service =
        message command =
        get quota command =
        set quota command =
        remote announce =
        remote browse sync =
        socket address = 0.0.0.0
        homedir map = auto.home
        afs username map =
        afs token lifetime = 604800
        log nt token command =
        time offset = 0
        NIS homedir = No
        registry shares = No
        usershare allow guests = No
        usershare max shares = 100
        usershare owner only = Yes
        usershare path = /var/lib/samba/usershares
        usershare prefix allow list =
        usershare prefix deny list =
        usershare template share =
        panic action =
        host msdfs = Yes
        passdb expand explicit = No
        idmap domains =
        idmap backend =
        idmap alloc backend =
        idmap cache time = 900
        idmap negative cache time = 120
        idmap uid = 15000-20000
        idmap gid = 15000-20000
        template homedir = /home/%D/%U
        template shell = /bin/false
        winbind separator = \
        winbind cache time = 300
        winbind enum users = No
        winbind enum groups = No
        winbind use default domain = No
        winbind trusted domains only = No
        winbind nested groups = Yes
        winbind expand groups = 1
        winbind nss info = template
        winbind refresh tickets = No
        winbind offline logon = No
        winbind normalize names = No
        winbind rpc only = No
        comment =
        path =
        username =
        invalid users =
        valid users =
        admin users = root
        read list =
        write list = root, admin, @lpadmin
        printer admin =
        force user =
        force group =
        read only = Yes
        acl check permissions = Yes
        acl group control = No
        acl map full control = Yes
        create mask = 0744
        force create mode = 00
        security mask = 0777
        force security mode = 00
        directory mask = 0755
        force directory mode = 00
        directory security mask = 0777
        force directory security mode = 00
        force unknown acl user = No
        inherit permissions = No
        inherit acls = No
        inherit owner = No
        guest only = No
        administrative share = No
        guest ok = No
        only user = No
        hosts allow =
        hosts deny =
        allocation roundup size = 1048576
        aio read size = 0
        aio write size = 0
        aio write behind =
        ea support = No
        nt acl support = Yes
        profile acls = No
        map acl inherit = No
        afs share = No
        smb encrypt = auto
        block size = 1024
        change notify = Yes
        directory name cache size = 100
        kernel change notify = Yes
        max connections = 0
        min print space = 0
        strict allocate = No
        strict sync = No
        sync always = No
        use sendfile = No
        write cache size = 0
        max reported print jobs = 0
        max print jobs = 1000
        printable = No
        printing = cups
        cups options =
        print command =
        lpq command = %p
        lprm command =
        lppause command =
        lpresume command =
        queuepause command =
        queueresume command =
        printer name =
        use client driver = No
        default devmode = Yes
        force printername = No
        printjob username = %U
        default case = lower
        case sensitive = Auto
        preserve case = Yes
        short preserve case = Yes
        mangling char = ~
        hide dot files = Yes
        hide special files = No
        hide unreadable = No
        hide unwriteable files = No
        delete veto files = No
        veto files =
        hide files =
        veto oplock files =
        map archive = Yes
        map hidden = No
        map system = No
        map readonly = yes
        mangled names = Yes
        store dos attributes = No
        dmapi support = No
        browseable = Yes
        blocking locks = Yes
        csc policy = manual
        fake oplocks = No
        locking = Yes
        oplocks = Yes
        level2 oplocks = Yes
        oplock contention limit = 2
        posix locking = Yes
        strict locking = Auto
        share modes = Yes
        dfree cache time = 0
        dfree command =
        copy =
        include =
        preexec =
        preexec close = No
        postexec =
        root preexec =
        root preexec close = No
        root postexec =
        available = Yes
        volume =
        fstype = NTFS
        set directory = No
        wide links = Yes
        follow symlinks = Yes
        dont descend =
        magic script =
        magic output =
        delete readonly = No
        dos filemode = No
        dos filetimes = Yes
        dos filetime resolution = No
        fake directory create times = No
        vfs objects =
        msdfs root = No
        msdfs proxy =

[homes]
        comment = Home Directory
        valid users = %S
        read only = No
        browseable = No

[shared]
        comment = Shared Drive
        path = /home/SHARES/shared
        read only = No
        force create mode = 0770
        directory mask = 0770

[admin]
        path = /home
        valid users = root, admin
        read only = No
        browseable = No

[netlogon]
        comment = Network Logon Service
        path = /home/SHARES/samba/netlogon
        valid users = %U
        browseable = No

[printers]
        comment = All Printers
        path = /var/spool/samba
        write list = root, admin
        printer admin = root, admin, printadmin
        guest ok = Yes
        printable = Yes
        browseable = No

[print$]
        comment = Printer Drivers
        path = /etc/samba/drivers
        write list = root, printadmin
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 76

Expert Comment

by:arnold
ID: 34879654
You do not have cups server defined within smb.conf.
cups server=thissmbserver
http://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html
0
 

Author Comment

by:ion_
ID: 34897936
I added "cups server = dc1" as per your suggestion. It made no difference, I restarted samba and tried cupsaddsmb again; still getting the error.
0
 
LVL 76

Expert Comment

by:arnold
ID: 34898171
Does the error still refer to localhost or does it now reflect dc1?
are you able to access \\dc1\print$ from the windows workstations? Testing whether the samba share for the print drivers works.

try within /etc/samba/smb.con
uncomment the interfaces =lo eth0 IPofDC1/24
and see if samba binds to a specific set of IPs clears up the issue.
0
 

Author Comment

by:ion_
ID: 34898991
Looks like still refers to localhost:

Running command: rpcclient localhost -N -A /tmp/4d5aa4914c029 -c 'adddriver "Windows NT x86" "utopia:pscript5.dll:utopia.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,utopia.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll"'
result was WERR_INVALID_PARAM
Unable to install Windows 2000 printer driver files (1)!


Yes, I'm able to access \\dc1\print$ where I see the W32X86 directory with all the driver and ppd files inside of it.

Added "interfaces = eth0 local_ip/24 to smb.conf; still same rpcclient error, still refers to localhost



Here's a snippet of the rpcclient debug output, perhaps it'll help:

000000 smb_io_rpc_hdr rpc_hdr  
    0000 major     : 05
    0001 minor     : 00
    0002 pkt_type  : 02
    0003 flags     : 03
    0004 pack_type0: 10
    0005 pack_type1: 00
    0006 pack_type2: 00
    0007 pack_type3: 00
    0008 frag_len  : 001c
    000a auth_len  : 0000
    000c call_id   : 00000006
000010 smb_io_rpc_hdr_resp rpc_hdr_resp
    0010 alloc_hint: 00000004
    0014 context_id: 0000
    0016 cancel_ct : 00
    0017 reserved  : 00
cli_pipe_validate_current_pdu: got pdu len 28, data_len 4, ss_len 0
rpc_api_pipe: got PDU len of 28 at offset 0
rpc_api_pipe: Remote machine localhost pipe \spoolss fnum 0x7602 returned 8 bytes.
000000 spoolss_io_r_addprinterdriver
    0000 status: WERR_INVALID_PARAM
result was WERR_INVALID_PARAM
write_socket(4,45)
write_socket(4,45) wrote 45
got smb length of 35
size=35
smb_com=0x4
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=51201
smb_tid=1
smb_pid=3210
smb_uid=100
smb_mid=14
smt_wct=0
smb_bcc=0
cli_rpc_pipe_close: closed pipe \spoolss to machine localhost
write_socket(4,39)
write_socket(4,39) wrote 39
got smb length of 35
size=35
smb_com=0x71
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=51201
smb_tid=1
smb_pid=3210
smb_uid=100
smb_mid=15
smt_wct=0
smb_bcc=0
0
 
LVL 76

Expert Comment

by:arnold
ID: 34899966
What happens if you run
rpcclient dc1 -N -A /tmp/4d5425af503b8 -c 'adddriver "Windows NT x86" "frontdesk:pscript5.dll:frontdesk.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,frontdesk.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll"'


http://lists.samba.org/archive/samba/2006-January/116532.html
rpcclient -Umhansen -c 'enumdrivers 3' localhost

0
 

Author Comment

by:ion_
ID: 34902341
Ok, made major progress. I followed this tutorial and it worked, I was able to install the drivers.
http://www.thebitguru.com/blog/view/153-Printer%20ready%20to%20serve!


rpcclient $> enumprinters
        flags:[0x800000]
        name:[\\dc1\utopia]
        description:[\\dc1\utopia,HP LaserJet 5Si,HP LaserJet 5Si]
        comment:[HP LaserJet 5Si]

        flags:[0x800000]
        name:[\\dc1\frontdesk]
        description:[\\dc1\frontdesk,HP Color LaserJet CM4730 MFP PCL 5,HP color]
        comment:[HP color]

rpcclient $> enumdrivers 3

[Windows NT x86]
Printer Driver Info 3:
        Version: [3]
        Driver Name: [utopia]
        Architecture: [Windows NT x86]
        Driver Path: [\\DC1\print$\W32X86\3\UNIDRV.DLL]
        Datafile: [\\DC1\print$\W32X86\3\HP5SI.GPD]
        Configfile: [\\DC1\print$\W32X86\3\UNIDRVUI.DLL]
        Helpfile: [\\DC1\print$\W32X86\3\UNIDRV.HLP]


        Monitorname: [RAW]
        Defaultdatatype: [pcl5eres.dll,ttfsub.gpd,UNIRES.DLL,STDNAMES.GPD,hpmopyui.ini,hpoemui.dll,hpcljx.hlp]

Printer Driver Info 3:
        Version: [3]
        Driver Name: [frontdesk]
        Architecture: [Windows NT x86]
        Driver Path: [\\DC1\print$\W32X86\3\unidrv.dll]
        Datafile: [\\DC1\print$\W32X86\3\hpcm4735.gpd]
        Configfile: [\\DC1\print$\W32X86\3\hpmdp6de.dll]
        Helpfile: [\\DC1\print$\W32X86\3\unidrv.hlp]


        Monitorname: [RAW]
        Defaultdatatype: [hpcpm473.cfg,hpcm4735.xml,hpcsc6de.dtd,hpcm473b.ini,hpcui6de.DLL,hpcpe6de.DLL,hpcdmc32.DLL,hpbcfgre.DLL,hpc5r6de.DLL,hpcsm6de.GPD,hpcP5.hpx,hpcsn6de.dem,hpcsat.dll,hpcev6de.DLL,hpcHL6de.CAB,UNIRES.DLL,UNIDRVUI.DLL,STDNAMES.GPD,STDDTYPE.GDL,STDSCHEM.GDL,ST]


Now, when I go to another windows pc to add the printers through the wizard and browse to dc1 I am able to install "Utopia" printer with no problems. However, when I try to install "frontdesk" I'm getting an error that the server doesn't have the correct driver installed and if I want to browse for the correct driver.

I noticed that the driver files that I copied to my samba server from the windows pc where the frontdesk was setup manually contain an .msi file. Could this be the culpit?
0
 
LVL 76

Assisted Solution

by:arnold
arnold earned 250 total points
ID: 34902581
I think in one of the other links/or while searching for a similar situation, all driver files had to be in ALL CAPS and It hink this might be what the issue might be.
0
 

Author Comment

by:ion_
ID: 34903275
caps wasn't it. But it all worked after I ran "setdriver <printer> <driver>" for the non working printer.

Thanks for all your help arnold.
0
 

Accepted Solution

by:
ion_ earned 0 total points
ID: 34903334
Just to sum up:

In order to fix the issue I had to manually get the drivers from a Windows PC and add them with rpcclient adddriver, like so:

$ rpcclient -c “getdriver \“Printer_name\” 3” pc_with_installed_printer
$ rpcclient $> adddriver “Windows NT x86” "printer_name:***.dll:***.dat:***.dll:***.hlp:RAW:****.dll, ****.dll,............"


to fix the secondary problem of other windows pcs not recognizing my second printer, I had to run:
$ rpcclient $> setdriver <printer> <driver>
0
 

Author Closing Comment

by:ion_
ID: 34936610
discovered solution as detailed in my last comment
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now