LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-12-2005, 05:14 PM   #1
LQ Newbie
Registered: May 2005
Posts: 4

Rep: Reputation: 0
Samba + CUPS "Access denied, unable to connect" error

I was setting up printer sharing to Windows machines on my home network via Samba yesterday, and got following bizarre problem -- I can print from Windows fine but printer status on Windows box reads "Access denied, unable to connect" instead of Ready or Printing or whatever. Effectively there is no access to the printer queue for some reason. I was googling for quite some time, and it seems many people having the same problem but very few solutions were offered. At the end I came across this page which solved my problem. So I am posting it here in case if other linux users have the same problem.

Quoting the page linked above:

I managed to get that fixed by adding the line use client driver = yes to the [printers] section of /etc/samba/smb.conf.

Also as Colin points out it is important to activate raw octet-stream mime type in CUPS.

One questions bugs me though -- why "use client driver = yes" solved the problem with printer queue accessibility from Windows? On a side note, my Mac printed through Samba perfectly without this option and was able to read a queue as far as I remember.

Hope this post will save someone a bit of time.


Last edited by lirik; 05-12-2005 at 05:17 PM.
Old 05-16-2005, 03:31 PM   #2
Senior Member
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 14.1
Posts: 1,141

Rep: Reputation: 55
Hey I have the same problem and I had already done what you mentioned in the post since a long time but I still get the "Unable to Connect" error. I don't know what's the problem. I have a dual-boot desktop (mostly run linux) and a printer connected to it. I also have a laptop (also a dual-boot) from where I am trying to print. One amazing thing is that I am unable to print via windows on laptop but if I boot in Linux I can print just fine. I don't know what the problem is?

Old 05-17-2005, 04:12 AM   #3
LQ Newbie
Registered: May 2005
Posts: 4

Original Poster
Rep: Reputation: 0
tuxrules, if you really can't print from windows, then you problem may lie elsewhere. Since the problem I had was different -- I was able to print, but could not access printer queue status.

When you are printing from linux are you printing over Samba as well? Or is it just plain CUPS? I am quite a newbie in Samba administration and can't really recommend anything apart from regular 1. run testparm 2. take a look into samba logs 3. if above steps do not help, increase logging verbosity and examine logs again

Old 05-17-2005, 08:31 AM   #4
Senior Member
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 14.1
Posts: 1,141

Rep: Reputation: 55
I am trying to print from my laptop (via a wireless network) to the printer attached my desktop. Now my desktop mostly runs on linux with samba on. My laptop (also dual boot with Linux) with windows on can access files on my desktop via samba but cannot print. However, when i turn on linux on my laptop its prints perfects via samba. I've checked error logs and I've also done what you said in your post. I am kinda thinking it may be a permission question with cups. I am kinda thinking of making a group which contains all the users who can print via samba and then adding that group via chown to cups.

I am not sure if this is good idea.

Old 05-19-2005, 03:50 PM   #5
LQ Newbie
Registered: Nov 2002
Location: NYC
Distribution: CentOS, Fedora, Ubuntu, EasyPeasy, FreeNAS, SmoothWall
Posts: 2

Rep: Reputation: 0
Just add this line to your printer section of smb.conf:

use client driver = Yes


It worked for my fedora fc3

Last edited by philiplawlor; 05-19-2005 at 03:53 PM.
Old 05-19-2005, 08:44 PM   #6
Senior Member
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 14.1
Posts: 1,141

Rep: Reputation: 55
Hi philiplawlor,
Thanks for the input. However I've already done what you suggested but to no avail. I followed the article your referred and doesnt seem to do the trick for me.

Here's my smb.conf
# Samba config file created using SWAT

# Global parameters
	workgroup = KUIPERBELT
	server string = Samba Server on K2
	guest account = No
	log file = /var/log/samba/%m.log
	max log size = 0
	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
	ldap ssl = no
	valid users = user1,user2
	admin users = user1
	write list = user1, user2
	hosts allow = xxx.xx.

	comment = Home Directories
	read only = No

	comment = LexmarkX63
	path = /var/spool/samba
	read only = No
	guest ok = Yes
	printable = Yes
	printer name = Baroda
	use client driver = Yes
Hope to crack this mystery
Old 08-14-2007, 03:37 PM   #7
Registered: Jul 2007
Distribution: ArchLinux, Ubuntu, Slackware, Fedora
Posts: 46

Rep: Reputation: 15
Thanks,guys,this is a great solution,I just met this problem today and I solved it with your help! Cheers!
Old 03-22-2008, 10:54 AM   #8
LQ Newbie
Registered: Mar 2008
Posts: 1

Rep: Reputation: 0
Unhappy Windows Printing to Linux Deskjet

When I first saw this I thought I might have found my solution. However, I still can't print from my Windows Laptop to a Linux-based HP Deskjet printer. The error in the log says:

call_nt_transact_ioctl(0x280004): Currently not implemented.
Unable to print file to DESKJET_895C - clitent-error-document-format-not-supported

The document was the Windows Test Page. Any thoughts?
Old 07-13-2011, 08:02 AM   #9
LQ Newbie
Registered: Jul 2011
Posts: 1

Rep: Reputation: Disabled
use client driver = yes
Old 09-21-2011, 05:02 PM   #10
LQ Newbie
Registered: Sep 2011
Posts: 1

Rep: Reputation: Disabled
Thumbs up Linux FC 15 + Virtual Box with Virtualized XP

Thanks Pal! With such an strange configuration I could print over the Virtual Network on my Virtual XP Box to my Samba printer!!

Last edited by ghabre; 09-21-2011 at 05:04 PM.
Old 10-13-2011, 02:09 PM   #11
LQ Newbie
Registered: Oct 2011
Posts: 1

Rep: Reputation: Disabled
Having already applied the "use client driver = yes" line to my smb.conf I was a bit disappointed to discover this topic did nothing to resolve my "access denied" error when trying to print to the (CentOS-6/cups/samba) shared DELL 3110cn printer on my network.

I could print fine from the Linux Server with Dell's PS drivers but no joy when attempting to print from XP machines - until I took my clue from "use client driver = yes" . . .

I have been successfully printing to this printer for years when it was served via a Win2000 server but I used the DELL PCL drivers. However, when I installed it to print to the Linux Server I chose the PS drivers (since it seemed to work so well for CUPS) - bad move - once I reinstalled the network printer using the PCL drivers. . . It Worked Perfectly!


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 client Access denied unable to connect Systest7 Linux - Networking 11 12-12-2010 09:45 PM
Unable to connect get's error "NO CARRIER" niju_nn Linux - Hardware 4 01-27-2004 02:28 PM
Email Error - "Recipient address rejected: Relay access denied" ripcord Linux - Newbie 1 10-31-2002 04:00 PM
Samba Printing "Access Denied" !! lmaher Linux - Networking 1 06-20-2002 10:36 AM
"Access Denied" to printer and directories shared via Samba Aarstar Linux - Networking 1 03-05-2002 07:38 PM

All times are GMT -5. The time now is 03:58 PM.

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