Operating System - HP-UX
1827444 Members
5891 Online
109965 Solutions
New Discussion

Re: Problem printing with samba

 
Weertman
Frequent Advisor

Problem printing with samba

I have version 2.2.8a based CIFS Server A.01.10

I can't get printing to work.
Windows XP says: access denied, unable to connect.

please help

[global]
debug level = 1
max log size = 2000
server string = SMB serv. STDB
comment = LINESIDE Machine.
workgroup = BLABLA
load printers = true
interfaces = lan0
bind interfaces only = yes
encrypt passwords = yes
guest ok = true
hide dot files = true
username map = /etc/opt/samba/users.map
printcap name = /etc/printcap
allow hosts = 10.156.128.
log file = /var/opt/samba/smblog
smb passwd file = /etc/opt/samba/smbpasswd.np
name resolve order = wins lmhosts host bcast
guest account = guest

2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: Problem printing with samba

If there is a domain in your office, at the XP login screen, make sure you use it for login. Logging into an XP box as local computer will deny the XP client access to printer resources in the domain or workgroup.

Make sure the shared printer and XP box are part of the same workgroup. Use the browse method to add the printer.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Darren Prior
Honored Contributor

Re: Problem printing with samba

Hi,

Do you have any printer entries in your smb.conf?

First you will need to have the printers setup on the HP-UX box, ie you can use lp to print. Then you will need a printer entry in smb.conf, ie:

[myprint]
comment = LJ4 next to Bob Smith
path = /tmp
guest ok = yes
printable = yes

Once these are setup you can map the printer name from your XP box.

You'll find a whole chapter on printing in the O'Reilly Using Samba book - there's a HTML version on your CIFS server, just point your browser at http://your_servers_name:901

regards,

Darren.
Calm down. It's only ones and zeros...