Page 1 of 1

Printer sharing in Samba

Posted: Fri Aug 27, 2004 5:28 am
by Chris Corbyn
Hi,

I'm trying to share a Lexmark Z600 USB printer from within Linux using Samba. The other PC's are all running windows. I'm testing it on an XP pro machine but I keep getting "Access denied, unable to connect" on that machine.

Here's my smb.conf file:
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE
# Date: 2004-07-21
[global]
netbios name = chris
server string = Chris on Linux
workgroup = WORKGROUP
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
printer admin = @ntadmin, root, administrator, sara
username map = /etc/samba/smbusers
map to guest = Bad User
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
security = user
encrypt passwords = yes
[homes]
comment = Home Directories
valid users = %S
browseable = No
read only = No
inherit permissions = Yes
[Setup]
path = /home/d11wtq/Setup
comment = /home/d11wtq/Setup
writeable = no
public = yes
guest ok = yes
wide links = no
[WindowsStorage]
path = /windows/C
comment = /windows/C
writeable = no
public = yes
guest ok = yes
wide links = yes
[FullSystem]
path = /
comment = /
writeable = no
public = yes
guest ok = yes
wide links = yes
[Movies]
path = /home/d11wtq/Shared_Folder/Movies
comment = /home/d11wtq/Shared_Folder/Movies
writeable = no
public = yes
guest ok = yes
wide links = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
Most of the stuff was there straight after installing smb but I've added the shared dirs etc and netbios stuff.

My Lexmark is connected to /dev/usb/lp0. The first time i tried to connect in windows it did the usual prompting for drivers thing. So whacked my cd in and installed the xp drivers. I can open the properties etc but when it comes to actually connecting to the remote printer it displays "Access denied, unable to connect". Do I need to tweak something directly with the printer not just smb?

Cheers

Posted: Fri Aug 27, 2004 11:07 am
by Chris Corbyn
Adding disable spoolss = yes I got it to be permitted to open the printer queue but still no luck with the actual printing. I should note that My Epson C20 that I just got rid of used to work fine on a parallel port with this config.

Now when I click print I get different error depending upon the program I'm printing from but essentially saying "Unable to create the print job".