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.