Jump to content

How can I print with samba? [SOLVED]


bsyuni
 Share

Recommended Posts

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.

 

:thanks: in advance.

 

[Qchem Edit - added solved to the title]

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 weeks later...
Guest gkokmdam
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.

Thanks, this was just what I needed. Great! :thanks::thumbs: 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 by gkokmdam
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...