1819794 Members
3431 Online
109607 Solutions
New Discussion юеВ

Samba Printing

 
Andrew Kaplan
Super Advisor

Samba Printing

I am running Samba 2.2.7a on a Mandrake 9.1 system. I am trying to make a locally attached printer, LaserJet 6mp, available to the local area network.
The SWAT program is being used to do the configuration. I have configured the printer to be browseable and have made the nobody account
the one that is used to access the printer. The /tmp directory is where the data will spool. The printing daemon that I am using is CUPS. After the configurations were complete, Samba was restarted. I tried to connect to the printer from a Windows 2000 workstation. I used the My Network Places icon to locate the system the printed was attached to, and selected the printer. I encountered an error message saying
the wrong printer driver was loaded on the Samba server. I selected the "correct" driver from the Windows list. After that, the printer loaded, but had the following error message:

Access denied, unable to connect.

Any ideas? Thanks.
A Journey In The Quest Of Knowledge
5 REPLIES 5
Michael Steele_2
Honored Contributor

Re: Samba Printing

1) "testparm smb.conf"
2) "ping BIGSERVER" from the PC and "ping ACLIENT" from the unix box.
3) "smbclient -L BIGSERVER"
4) "nmblookup -B BIGSERVER __SAMBA__" (* ip correct ? *)
5) "nmblookup -B ACLIENT '* (* ip correct ? *)
6) "nmblookup -d 2 '* (* broadcast OK ? *)
7) "smbclient //BIGSERVER/TMP". (* password ? *)
8) "net view \\BIGSERVER" from DOS (* shares listed ? *)
9) "net use x: \\BIGSERVER\TMP". (* password ? *)
10 ) "nmblookup -M TESTGROUP" (* test the workgroup *)
11 ) test browser
Support Fatherhood - Stop Family Law
Steven E. Protter
Exalted Contributor

Re: Samba Printing

This is a Windows Problem. Get the windows print driver from the printer vendor and load that driver, pointing at the Samba print queue.

I just ran into the same thing Windows 2K to Windows NT Server. It was actually kind of pathetic since both products were Microsoft.

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
Andrew Kaplan
Super Advisor

Re: Samba Printing

Hi Steve,

I downloaded the driver onto the Samba server and expanded it into its own directory under the /etc/samba directory. I then went into SWAT and configured the printer options to point to the directory that had been created. I then restarted Samba. After that was done, I tried the same procedure with the 2000 workstation and got the same error message.
A Journey In The Quest Of Knowledge
Francisco J. Soler
Honored Contributor

Re: Samba Printing

Hi Andrew,
Is nobody account the guest account in your samba configuration?

Is "guest ok" enabled in the printer configuration?

Have you the nobody as a user in your linux box?

Can you send the smb.conf file to check it?

Frank.
Linux?. Yes, of course.
Andrew Kaplan
Super Advisor

Re: Samba Printing

Hi there,

I ran throught the items you had suggested, and everything appears to be in order with one possible exception. The nobody account on the4 system does not have login capabilities. If you were to check this via Webmin, the setting under Password would be at No login allowed.

Per your request, I am including the smb.conf file in this e-mail.
A Journey In The Quest Of Knowledge