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
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.
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”.
lol! So tell us a lot more about the situation when you start your
thread.