bsyuni Posted November 10, 2004 Report Share Posted November 10, 2004 How can I use a printer in the NT domain. Here is the situation. I have a printer connected with MS Windows 2000. I tried setup with mcc and setup looks fine. But I can not use the printer. So, I try to figure it out by myself step by step. The first step is make a sure samba connection. smbclient -L WORK-ENRIQUE It does not work so that I put WORK-ENRIQUE'S IP address in /etc/hosts and this time I put user name and workgroup, too. smbclient -L WORK-ENRIQUE -U myUserName%myPassWd -W WORK Domain=[WORK-ENRIQUE] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager] Sharename Type Comment --------- ---- ------- HPLaserJet Printer HP LaserJet 6P/6MP - Standard IPC$ IPC Remote IPC print$ Disk Printer Drivers ADMIN$ Disk Remote Admin C$ Disk Default share But still I can not use the printer. Even though I can print out some ASCII text directly. echo -en "\rHello\r\f" | smbclient "//WORK-ENRIQUE/HPLaserJet" -c "print -" -N -U myUserName%myPassEd -W WORK Also I check /etc/cups/printers.conf and it looks fine. I also restart cups /etc/init.d/cups start firefox http://localhost:631 & In firefox Printer State: idle, accepting jobs. Looks still fine, doesn't it? But I put a test page for printing then, "Connection failed with error NT_STATUS_ACCESS_DENIED" hp-227 Test Page root 26k processing since It might be I do not have root account in Windows2000 box. Any suggestion will be helpful. in advance. [Qchem Edit - added solved to the title] Quote Link to comment Share on other sites More sharing options...
polemicz Posted November 11, 2004 Report Share Posted November 11, 2004 I have a similar problem. See posting in Networking. I haven't had a chance to try to get it worked out, but try some of the suggestions in that thread. By the way can you ping the Win system? If smbclient is not working you probably have a Samba configuration problem. Quote Link to comment Share on other sites More sharing options...
bsyuni Posted November 11, 2004 Author Report Share Posted November 11, 2004 Yes, I can ping the Window box. Quote Link to comment Share on other sites More sharing options...
Qchem Posted November 11, 2004 Report Share Posted November 11, 2004 What does your cups path to the print look like? Quote Link to comment Share on other sites More sharing options...
bsyuni Posted November 11, 2004 Author Report Share Posted November 11, 2004 I hope this is an answer for your question. smb://WORK/WORK-ENRIQUE/HPLaserJet smb://WORK-ENRIQUE/HPLaserJet smb://myUserName:myPassWd@WORK-ENRIQUE/HPLaserJet smb://myUserName:myPassWd@WORK/WORK-ENRIQUE/HPLaserJet I tried all four one by one but it did not work at all. By the way, the NT workgroup is WORK. Quote Link to comment Share on other sites More sharing options...
polemicz Posted November 12, 2004 Report Share Posted November 12, 2004 Is your Samba workgroup name different from you Windows workgroup? If so that will be a problem. It looks from your smbclient info that they are not, i.e. smbclient -L works only with the -W option. Check that in your samba config file. Quote Link to comment Share on other sites More sharing options...
bsyuni Posted November 12, 2004 Author Report Share Posted November 12, 2004 I changed it form MDKGROUP to WORK in /etc/samba/smb.conf workgroup = WORK Still I can not use the printer. Anyway, I can see the shared printer and files but still I can not use the printer. smbclient -L WORK-ENRIQUE Password: Domain=[WORK-ENRIQUE] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager] Sharename Type Comment --------- ---- ------- HPLaserJet Printer HP LaserJet 6P/6MP - Standard IPC$ IPC Remote IPC print$ Disk Printer Drivers ADMIN$ Disk Remote Admin C$ Disk Default share Domain=[WORK-ENRIQUE] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager] Quote Link to comment Share on other sites More sharing options...
Qchem Posted November 12, 2004 Report Share Posted November 12, 2004 What printer drivers do you have installed? Have you installed gimp-print? Quote Link to comment Share on other sites More sharing options...
polemicz Posted November 12, 2004 Report Share Posted November 12, 2004 I'm curious which version of Samba you are using. 10.0 installs 3.0.2. I've googled a bunch because of my simialr problem and there appear to be a lot of issues with the most recent versions of Samba accessing Win2000 shares. My Samba was updated to 3.0.6. This weekend I intend to install an un-updated Mdk10.0 with 3.0.2 to see if that helps. In my case smbclient works fine and smb4k sees all my Win shares also, but when it comes to scanning the network for the printer share it doesn't work and when I try to test print I get what you have got. Try googling for Samba and cups printing to Win2000 problems. Quote Link to comment Share on other sites More sharing options...
polemicz Posted November 13, 2004 Report Share Posted November 13, 2004 Got the printer problem fixed. The problem is in Cups, which now uses a different format for uri's. There is a Mandrake bug report (http://qa.mandrakesoft.com/show_bug.cgi?id=12272). You set your printer location as smb//workgroup/user:password@server/printer. Hope this helps your problem. Quote Link to comment Share on other sites More sharing options...
bsyuni Posted November 15, 2004 Author Report Share Posted November 15, 2004 What printer drivers do you have installed? Have you installed gimp-print? <{POST_SNAPBACK}> I have installed HP LaserJet 6MP which is a proper driver. I did not installed gimp-print. Do I need to install gimp-print? Quote Link to comment Share on other sites More sharing options...
bsyuni Posted November 24, 2004 Author Report Share Posted November 24, 2004 The problem has been solved. It had a problem with samba 3.0.2 as Polemicz mentioned before. After upgrade samba 3.0.6 it just start to work. Thank you for your helping, Qchem and Polemicz. Quote Link to comment Share on other sites More sharing options...
Guest gkokmdam Posted November 28, 2004 Report Share Posted November 28, 2004 (edited) Got the printer problem fixed. The problem is in Cups, which now uses a different format for uri's. There is a Mandrake bug report (http://qa.mandrakesoft.com/show_bug.cgi?id=12272).You set your printer location as smb//workgroup/user:password@server/printer. Hope this helps your problem. <{POST_SNAPBACK}> Thanks, this was just what I needed. Great! It fully solved my problem. (strange that this was not solved by the upgrade of either CUPS or Samba. (who ever is responsible of this change, that is) as the printing did work before :unsure:) wkr, gkokmdam Edited November 28, 2004 by gkokmdam Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.