[Samba] Access denied, unable to connect to printer

Norman Walsh ndw at nwalsh.com
Mon Apr 28 14:21:43 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

/ "Kurt Pfeifle" <kpfeifle at danka.de> was heard to say:
| Unforch, 2.2.3a is very old, with many known weaknesses in the printing
| code.

I should go off and build something more recent, eh? Fair 'nough.
I see Debian binaries for 2.2.8, would that be significantly better?

|> The server is using Cups
|
| Which version of CUPS?

1.1.15

| What is the exact message you are getting on XP? What is the exact
| procedure you are using to connect to the printer?

I get "Access dened, unable to connnect"

First I double-click on a share drive to make sure I get prompted for
username/password. After I've made sure I can connect to the server, I
double click on the printer and it says "epson - Access dened, unable
to connnect" in the status bar.

| Is it XP Prof or XP Home? Service Packs?

Uhm, XP Home I would guess. I've been running the "recommended
updates" when they arrive but I haven't installed any service packs
explicitly.

| Are you intending to have the driver downloading from the server to the
| XP client ?

No, I've already got the drivers on the XP box (by plugging the
printer directly into it once and installing them).

| Or have you installed a driver locally and plan to print "raw" thru
| CUPS?

Right.

|> I'm totally stumped. I set debuglevel=5 in smb.conf and watched the
|> log files, but I can't see anything that looks like an error.
|> Help?
|> Here's my smb.conf:
|> [global]
|>         debuglevel = 5
|> 	server string = Zeus
|> 	encrypt passwords = true
|> 	obey pam restrictions = Yes
|> 	passwd program = /usr/bin/passwd %u
|> 	passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
|> 	syslog = 0
|> 	log file = /var/log/samba/log.%m
|> 	max log size = 1000
|> 	printcap name = lpstat
|
| ??? see below...
|
|> 	domain master = True
|> 	dns proxy = No
|> 	wins support = Yes
|> 	invalid users = root
|> 	printing = cups
|
| If "printing = cups" you should also specify "printcap name = cups".
| CUPS doesn't need a printcap for itself. But it can generate
| one and keep it up to date for the convenience of those 3rd
| party apps that need to see a printcap. Check in cupsd.conf
| if CUPS writes a printcap ("Princap /etc/printcap" setting).

Ok. This is actually an older smb.conf that I was playing with. It
worked once before, you see...but I've rebuilt the server from the
ground up since then.

I'll fix the printcap name

|> [epson]
|> 	comment = Epson CX3200
|> 	path = /var/spool/samba
|> 	read only = No
|> 	create mask = 0777
|> 	guest ok = Yes
|> 	printable = Yes
|> 	print command = lpr -P %p -o raw %s -r
|> 	lpq command = lpstat -o %p
|> 	lprm command = cancel %p-%j
|
| All these commands will have no effect, if "printing = cups" is
| specified and your smbd is linked against libcups.so (check with
| "ldd `which smbd` | grep cups").

It is.

| If you *want* to use your own print commands (also for debugging
| reasons), use "printing = sysv" and "printcap name = /etc/printcap"
| [or whichever path is appropriate].

I'm happy to have cups do it.

| To troubleshoot the "Access denied", you might want to
| look into the "smbstatus" command, which shows *as which
| user* Samba is connecting clients to each share.
|
| One final attempt to describe a more complete procedure:
|
| Can you connect with smbclient? Try (from a Linux client):
|
|     smbclient //[SambaIPaddress]/[printersharename] -U root%[password]
|
| You should see s.th. like this:
|
|     added interface ip=10.160.51.60 bcast=10.160.51.255 nmask=255.255.252.0
|     Domain=[CUPS-PRINT] OS=[Unix] Server=[Samba 2.2.7a]

Oddly, "ndw" (me) fails: NT_STATUS_LOGON_FAILURE. But dbw (my wife),
guest, and nobody all succeed.

| If this works, install the driver to use your parallel port on Windows XP.
| Then try this from the "DOS window" in XP:
|
|     net use lpt1: \\[SambaIPaddress]\[printersharename] -U root%[password]

I can try this next time I have the laptop in front of me.

Thanks for the clues.

                                        Be seeing you,
                                          norm

- -- 
Norman Walsh <ndw at nwalsh.com> | Wink at small faults; for thou has
http://nwalsh.com/            | great ones.--Thomas Fuller (II)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>

iD8DBQE+rTj3OyltUcwYWjsRAjgXAJ4nIYKWWBkMJzDKACRn3knFXLHz0ACcC1dP
QJbsag72c1J03A/HaPkos7Q=
=hdzX
-----END PGP SIGNATURE-----


More information about the samba mailing list