Results 1 to 5 of 5

Thread: Samba printer - access denied, unable to connect

  1. #1
    brucerowe NNTP User

    Default Samba printer - access denied, unable to connect


    I'm trying to get a printer working under Samba. The printer is a rather
    ordinary HP Officejet R40. Samba is working (I can read and write to the
    shared drive). The printer works under Cups (I can print a test page and
    OO printing works just fine. I can view the printer on my Windows boxes
    and install the print driver.

    However when I install the print driver, it displays the message,
    "Access denied, unable to connect." This happens on all computers.

    I'm using Open SUSE 11.0, KDE 4.0

    Here is my smb.conf:

    * * * * * * * * * * * * * * * * * *

    [global]
    add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody
    -s /bin/false %m$
    domain logons = Yes
    domain master = Yes
    security = user
    usershare max shares = 100
    workgroup = seaside5
    netbios name = linux5
    usershare allow guests = Yes
    local master = Yes
    os level = 65
    preferred master = Yes
    passdb backend = smbpasswd
    username map = /etc/samba/smbusers
    log level = 1
    syslog = 0
    log file = /var/log/samba/%m
    max log size = 0
    name resolve order = wins bcast hosts
    time server = Yes
    printcap name = CUPS
    set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u'
    logon script = logon.bat
    logon path = \\bar\profiles\%u
    logon drive = H:
    wins support = Yes
    printer admin = root
    printing = cups
    idmap gid = 10000-20000
    idmap uid = 10000-20000

    ; =====================Share Definitions=============
    [linux5_data]
    comment = most of the disk space is here
    inherit acls = Yes
    path = /samba1
    read only = No
    browseable = Yes
    valid users = bruce, diane, BRUCE1
    writable = yes
    create mask = 7777
    directory mask = 7777
    inherit permissions = Yes

    [netlogon]
    comment = Network Logon Service
    path = /var/lib/samba/netlogon
    write list = root

    [printers]
    comment = All Printers
    path = /var/tmp
    guest ok = Yes
    printable = Yes
    create mask = 0600
    browseable = No

    [print$]
    comment = Printer Drivers
    path = /var/lib/samba/drivers
    guest ok = Yes
    write list = @ntadmin root
    force group = ntadmin
    create mask = 0664
    directory mask = 0775

    [officejet5]
    comment = Officejet 5
    path = /var/tmp
    printable = Yes
    browseable = Yes
    guest ok = Yes


    I'm desperate. If I don't get this printer working in 24 hours, the
    office manager will have me dragged to the town square and flogged.


    --
    brucerowe
    ------------------------------------------------------------------------
    brucerowe's Profile: http://forums.opensuse.org/member.php?userid=15495
    View this thread: http://forums.opensuse.org/showthread.php?t=400399


  2. #2
    swerdna NNTP User

    Default Re: Samba printer - access denied, unable to connect


    Please post also the file cups.conf located at /etc/cups/cupsd.conf


    --
    'Come visit sometime'
    (http://www.swerdna.net.au/linux.html)
    ------------------------------------------------------------------------
    swerdna's Profile: http://forums.opensuse.org/member.php?userid=84
    View this thread: http://forums.opensuse.org/showthread.php?t=400399


  3. #3
    swerdna NNTP User

    Default Re: Samba printer - access denied, unable to connect


    Regarding Samba:

    You've got this stuff in [global] for printing:
    > printcap name = CUPS
    > printer admin = root
    > printing = cups

    Regarding "printer admin", smb.conf man pages say this: "Use caution
    with use in the global stanza as this can cause side effects" and
    testparm says it is deprecated. Do you really need it? I suggest that
    you comment it out (use #)

    I'd recommend these in [global] for printing
    > printing = cups
    > printcap name = cups
    > printcap cache time = 750
    > cups options = raw
    > load printers = yes
    > use client driver = yes


    Where you've got this:
    > [printers]
    > comment = All Printers
    > path = /var/tmp
    > guest ok = Yes
    > printable = Yes
    > create mask = 0600
    > browseable = No

    I'd make this change: create mask = 0700

    For this one:
    > [officejet5]
    > comment = Officejet 5
    > path = /var/tmp
    > printable = Yes
    > browseable = Yes
    > guest ok = Yes

    If you put in [global] the line "load printers = yes", then you don't
    need the share at all because the share [printers] already has it
    shared, maybe comment it out entirely (use #) to cut down confusion.


    --
    'Come visit sometime'
    (http://www.swerdna.net.au/linux.html)
    ------------------------------------------------------------------------
    swerdna's Profile: http://forums.opensuse.org/member.php?userid=84
    View this thread: http://forums.opensuse.org/showthread.php?t=400399


  4. #4
    srivo NNTP User

    Default Re: Samba printer - access denied, unable to connect


    I have exactly the same problem. By adding the line:
    > use client driver = yes


    I can now have access to the printer but I have an error message when I
    try to print a test page.


    --
    srivo
    ------------------------------------------------------------------------
    srivo's Profile: http://forums.opensuse.org/member.php?userid=15988
    View this thread: http://forums.opensuse.org/showthread.php?t=400399


  5. #5
    swerdna NNTP User

    Default Re: Samba printer - access denied, unable to connect


    srivo;1900070 Wrote:
    > I have exactly the same problem. By adding the line:
    >
    >
    > I can now have access to the printer but I have an error message when I
    > try to print a test page.

    Your issue will likely be different from that of brucerowe. Running
    them together in the same thread will make understanding difficult.
    Please start a new thread in the appropriate Forum (Networking). And
    when you do, please post your config files, cupsd.conf and smb.conf and
    try to include some information to help us diagnose your problem.

    To say you have the line "use client driver = yes " and that "I have an
    error message when I try to print a test page", is a bit like telling an
    electrician that "the power is on" and "but the lights aren't working".
    So tell us a lot more about the situation when you start your
    thread.


    --
    'Come visit sometime'
    (http://www.swerdna.net.au/linux.html)
    ------------------------------------------------------------------------
    swerdna's Profile: http://forums.opensuse.org/member.php?userid=84
    View this thread: http://forums.opensuse.org/showthread.php?t=400399


Posting Permissions

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