Professional Web Applications Themes

printig with samba or pc netlink - Sun Solaris

Hello, I have an Ultra 10 with a HP Deskjet 815. The printer works with CUPS fine. But I'm unable to share the printer with other windows client. I have used samba and pc netlink. In both, I have the same error. Windows find the printer but I can't print. The Windows Printer manager always say something like "access denied, connection not possible" What Can I do? Thanks...

  1. #1

    Default printig with samba or pc netlink

    Hello,

    I have an Ultra 10 with a HP Deskjet 815. The printer works with CUPS fine.
    But I'm unable to share the printer with other windows client. I have used
    samba and pc netlink. In both, I have the same error. Windows find the
    printer but I can't print. The Windows Printer manager always say something
    like "access denied, connection not possible"



    What Can I do?



    Thanks





    Lorenz Guest

  2. #2

    Default Re: printig with samba or pc netlink

    On Wed, 24 Sep 2003 13:35:32 +0200, Lorenz wrote:
     

    Start with providing a little more information. Can your Windows client
    access his home directory on the server? Did you create a Samba print
    spool directory and give it perms of 1777?

    If yes, then post your smb.conf file.

    Dave Guest

  3. #3

    Default Re: printig with samba or pc netlink

    Hello,

    The access to directory work fine,

    /var/spool/samba have 1777.



    Here my smb.conf

    # Global parameters

    [global]

    server string = Samba Server

    workgroup = HOME

    path = /tmp

    default service = printers

    printer = deskjet

    log file = /usr/local/samba/var/log.%m

    printing = cups

    load printers = yes

    dns proxy = No

    security = SHARE

    max log size = 50

    encrypt passwords = yes

    preferred master = yes

    time server = Yes





    [printers]

    path = /usr/spool/samba

    lpresume command = /opt/sfw/cups/bin/lp -i %p-%j -H resume

    lpq command = /opt/sfw/cups/bin/lpstat -o%p

    queueresume command = /opt/sfw/cups/bin/enable %p

    printer name = deskjet

    printer = deskjet

    writeable = yes

    lprm command = /opt/sfw/cups/bin/cancel %p-%j

    queuepause command = /opt/sfw/cups/bin/disable %p

    lppause command = /opt/sfw/cups/bin/lp -i %p-%j -H hold

    comment = All Printers

    print command = /opt/sfw/cups/bin/lp -c -d%p %s; rm %s

    printable = yes

    public = yes





    [tmp]

    writeable = yes

    public = yes

    guest only = yes



    Lorenz Guest

  4. #4

    Default Re: printig with samba or pc netlink

    On Wed, 24 Sep 2003 19:17:38 +0200, Lorenz wrote:
     

    Are /var/spool/samba and /usr/spool/samba the same?

    There are a few items in your smb.conf which you might consider adding.
    Note that I use lprng rather than cups, but the structure otherwise should
    be the same. Your print spooler also should -not- do any input filtering;
    i.e., the data stream from the Windows client should go directly to the
    printer without modification.

    # Global parameters
    [global]
    server string = Samba Server
    interfaces = iprb0 192.168.0.6/24
    encrypt passwords = Yes
    log file = /var/log/smbd.%m
    max log size = 50
    time server = Yes
    printcap name = /etc/printcap
    os level = 65
    preferred master = True
    domain master = True
    hosts allow = 192.168.0.
    printing = lprng
    print command = /opt/sfw/bin/lpr -Praw %s
    lpq command = /opt/sfw/bin/lpq -Praw
    lprm command = /opt/sfw/bin/lprm -Praw %j
    lppause command = /opt/sfw/sbin/lpc hold raw %j
    lpresume command = /opt/sfw/sbin/lpc release raw %j
    queuepause command = /opt/sfw/sbin/lpc -Praw stop
    queueresume command = /opt/sfw/sbin/lpc -Praw start

    [hp]
    comment = HP DeskJet 812C
    path = /var/spool/samba
    printer admin = admin, staff
    read only = No
    printable = Yes
    printer name = raw
    oplocks = No

    Dave Guest

  5. #5

    Default Re: printig with samba or pc netlink

    I've change my smb.conf. But the printer will work :-(
    smb.conf
    ------------------
    # Global parameters
    [global]
    server string = Samba Server
    workgroup = HOME
    path = /var/spool/samba
    dns proxy = No
    default service = global
    load printers = yes
    os level = 65
    encrypt passwords = Yes
    time server = Yes
    max log size = 50
    preload = global
    printer = deskjet
    security = SHARE
    log level = 10
    printing = lprng
    queueresume command = /ops/sfw/cups/sbin/lpc -Pdeskjet start
    printcap name = /etc/printcap
    printer name = deskjet
    lprm command = /opt/sfw/cups/bin/lprm -Pdeskjet %j
    queuepause command = /opt/sfw/cups/sbin/lpc -Pdeskjet stop
    lppause command = /opt/sfw/cups/sbin/lpc hold deskjet %j
    lpq command = /opt/sfw/cups/bin/lpq -Pdeskjet
    print command = /opt/sfw/cups/bin/lpr -Pdeskjet %s
    log file = /usr/local/samba/var/log.%m


    [Drucker]
    path = /var/spool/samba
    printer = deskjet
    writeable = yes
    allow hosts = 10.0.0.
    oplocks = No
    printable = yes
    public = yes

    [tmp]
    path = /tmp
    read only = No
    guest only = Yes
    guest ok = Yes



    Lorenz Guest

  6. #6

    Default Re: printig with samba or pc netlink

    On Thu, 25 Sep 2003 13:57:07 +0200, Lorenz wrote:
     

    Did you install the printer driver on the Windows client?

    With a Win9X or Me machine, during the printer installation indicate the
    location of the printer as \\server\share.

    With a Win2k or XP machine locate the printer at LPT1: but then go to
    console mode and execute

    C:>\ net use LPT1: \\server\share

    Dave Guest

  7. #7

    Default Re: printig with samba or pc netlink

    Yes, is was a problem with WinXP. I've create a new connection to
    //sun01/deskjet by hand.

    Thanks for your help.


    "Dave Uhring" <com> schrieb im Newsbeitrag
    news:com... 
    >
    > Did you install the printer driver on the Windows client?
    >
    > With a Win9X or Me machine, during the printer installation indicate the
    > location of the printer as \\server\share.
    >
    > With a Win2k or XP machine locate the printer at LPT1: but then go to
    > console mode and execute
    >
    > C:>\ net use LPT1: \\server\share
    >[/ref]


    Lorenz Guest

Similar Threads

  1. PC Netlink Going away?
    By Stan in forum Sun Solaris
    Replies: 2
    Last Post: August 27th, 08:49 AM
  2. Replies: 0
    Last Post: July 14th, 12:50 AM
  3. Problem with printig polish fonnts from OA on Solaris 8.0
    By Marek Stojecki in forum Oracle Server
    Replies: 1
    Last Post: June 28th, 04:48 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139