LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-04-2003, 10:27 PM   #1
Systest7
LQ Newbie
 
Registered: Sep 2003
Location: Santa Clara
Distribution: RH7 Mandrake9
Posts: 5

Rep: Reputation: 0
samba client Access denied unable to connect


Apologies if this is an old chestnut, but I've seen identical queries all over the linux groups on google, and no workaround.

Scenario:

Win2K/XP samba clients can submit print jobs to printer on samba server(and they print), but dbl click on the samba printer or "see whats printing" gives the titlebar message:

[printername] on [servername] Access denied, unable to connect.

you cant cancel jobs, etc

This drove me bonkers until I cranked up logging to level 3 and RTFM (man smb.conf)
quote
.. the OpenPrint_erEx() call will fail. The result is that the
client will now display an "Access Denied; Unable
to connect" message in the printer queue window
(even though jobs may successfully be printed).

This is the "use client driver" section. And it applies in my case where I have a winXPhome
connecting to a laser printer on the samba box.

I'm not doing the [print$] share and installing all the drivers on the samba box (yet). This is well worth it but some other time.

to repeat, setting up [print$] is The Right Way To Do It.

Horrid Hack Answer: "use client driver = yes" see below

I dont want samba to grab everything in /etc/printcap, thus

[global]
...
load printers = no
...

The printer SHARE name is "Panasonic", the entry in /etc/printcap is KXP6500 and its
set as a "raw" queue as it gets the preprocessed bytestream from the samba client.
The spool file is /var/lpd/samba as its lprng's job to take the file from here and
shovel it into the /var/spool/lpd/KXP6500 queue

thus

[Panasonic]
browsable = yes
printable = yes
printing = lprng
printer = KXP6500
print command = /usr/bin/lpr -b -P%p -r %s
lpq command = /usr/bin/lpq -P%p
lprm command = /usr/bin/lprm -P%p %j
path = /var/spool/samba
min print space = 2000
#
# CAUTION! this does not apply to win95/98/ME
# it tells winNT/2K/XP clients to use a local
# printer driver
# stops the "acess denied" in windows when trying to view
# print queue
use client driver = yes


nb, perms, owner, group, for /var/spool/samba are drwxrwxrwt root root


Hey presto! I can examine the queue, suspend, restart, cancel print jobs etc.

setting "done_jobs=0" in lpd.conf will get rid of the long list of completed jobs
that windows will display for days afterwards.

Hope this helps

Last edited by Systest7; 12-06-2003 at 12:45 AM.
 
Old 03-14-2004, 08:46 PM   #2
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
awesome post.. I appreciate you posting this.. lucky for me it was the first thing i found and it fixed my issue quickly!
 
Old 06-01-2004, 08:26 PM   #3
saposmak
Member
 
Registered: Sep 2003
Distribution: Redhat
Posts: 72

Rep: Reputation: 15
thanks a lot man.... It's always great to have someone share the good stuff with the rest of us mere mortals
 
Old 06-13-2004, 08:35 PM   #4
Dr. Ephemeron
Member
 
Registered: Oct 2003
Distribution: Mandrake 10.1 & Fedora Core 4
Posts: 84

Rep: Reputation: 15
Thumbs up

If you are using CUPS, you still need to put "use client driver = yes" in the smb.conf [printer] section to get rid of that Windows message.
 
Old 09-26-2006, 05:36 PM   #5
jmeldrum
LQ Newbie
 
Registered: Nov 2004
Posts: 2

Rep: Reputation: 0
Works perfect!

This worked perfectly for me. Thanks.
 
Old 03-23-2007, 02:54 AM   #6
shawnbishop
Member
 
Registered: Dec 2005
Location: South Africa
Distribution: CentOS,Ubuntu,Fedora
Posts: 249

Rep: Reputation: 30
You have solved 2 years of trying to explain to Windows users that they can still print, even though it says "accessed denied"

Thank you...!!! :-)
 
Old 05-22-2007, 04:44 PM   #7
wsun013
LQ Newbie
 
Registered: Jan 2007
Posts: 1

Rep: Reputation: 0
Posted in 2003, still useful (for me and the others) in 2007. NICE!
 
Old 08-07-2007, 01:41 PM   #8
SGlassman
Member
 
Registered: May 2007
Posts: 42

Rep: Reputation: 16
Does anyone know how to get a WinXP machine in a network with a Samba PDC to install the XP printer drivers to the samba share listed in the smb.conf file? The reason to do this is so that others can add the networked printer to their profile view \\Server\printername.
 
Old 02-06-2009, 03:45 PM   #9
tzavaleta
LQ Newbie
 
Registered: Sep 2004
Posts: 4

Rep: Reputation: 0
2009 and still helpful!

This has been bugging me! 2009 and still helpful! Thanks again!
 
Old 10-17-2009, 07:33 AM   #10
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 643

Rep: Reputation: 32
that error message is also gone now in Vista.........great solution...
 
Old 07-27-2010, 01:43 PM   #11
kwasar
LQ Newbie
 
Registered: Jul 2010
Posts: 1

Rep: Reputation: 0
Smile 2010 and still usefull.

This had been an itch needing scratching for me for a long while.

Good post.
 
Old 12-12-2010, 08:45 PM   #12
tennis_slacker
Member
 
Registered: Apr 2008
Location: Idaho
Distribution: Slackware
Posts: 92

Rep: Reputation: 17
Thank you!!! This has bothered me for a couple of years! The 'use client driver = yes' worked perfectly.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba + CUPS "Access denied, unable to connect" error lirik Linux - Networking 10 10-13-2011 01:09 PM
Samba PDC - XP client, Access is denied tstephens Linux - Networking 6 10-04-2007 12:59 AM
XP Client Returns 'Access is Denied' Error When Trying to Connect to a Samba Server BuckRogers01 Linux - Networking 1 05-25-2005 11:55 AM
Samba:Unable to connect shares from win2k client vikram_cvk Linux - Software 8 03-22-2004 12:14 AM
access is denied : samba PDC, win2k client dkodegwc Linux - Networking 6 12-14-2002 11:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration