openSUSE Forums > Network/Internet » I've got Samba 1/2 working, Please help with Printing

Go Back   openSUSE Forums > Network/Internet
Forums FAQ Members List Search Today's Posts Mark Forums Read


Network/Internet Questions about internet applications, network configuration, usage (SAMBA, network printing, NFS)

Reply
Page 3 of 5 12 3 45
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 26-Sep-2009, 10:52
bobcal2000's Avatar
Puzzled Penguin
 
Join Date: Jun 2009
Location: NJ - USA
Posts: 46
bobcal2000 hasn't been rated much yet
Default Re: I've got Samba 1/2 working, Please help with Printing

Sorry for the confusion: I'll start again.

Here is the error I'm getting in the CUPS Admin printer tab:

hpofficejetk80xi (Default Printer) "NT_STATUS_ACCESS_DENIED opening remote spool Test Page"
Description: HP OfficeJet K80xi with driver HP Officejet k80xi Foomatic/hpijs, hpijs 2.8.7.3
Location: Office
Printer Driver: HP OfficeJet K80xi - CUPS+Gutenprint v5.0.2
Printer State: idle, accepting jobs, published.
Device URI: smb://VMWWG/192.168.0.10/hpofficejetk80xi

I changed the Device URI to this format:

smb://usernameassword@workgroup/servername/printer

My question has do I use "root" for username and its password?


I tried root and its password twice. It removes the username and password in the URI
smb://VMWWG/192.168.0.10/hpofficejetk80xi

Is this okay? Should I be using a different username and password?
__________________
Bobby
openSUSE Very Dangerous Novice User
Reply With Quote
  #22 (permalink)  
Old 26-Sep-2009, 15:59
swerdna's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Oz
Posts: 4,869
swerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the rough
Default Re: I've got Samba 1/2 working, Please help with Printing

smb://VMWWG/192.168.0.10/hpofficejetk80xi

That syntax is OK, provided the server on IP 192.168.0.10 is set to allow guests.

When you sit at the keyboard of the machine 192.168.0.10 and put this address in the web browser http://localhost:631 and click the Printers Tab, what URI do you see? (it will be different from the URI above, don't worry about that).

And what happens when you click to print a test page?
__________________
Drop in and visit some time.

Last edited by swerdna; 26-Sep-2009 at 16:05.
Reply With Quote
  #23 (permalink)  
Old 26-Sep-2009, 20:41
bobcal2000's Avatar
Puzzled Penguin
 
Join Date: Jun 2009
Location: NJ - USA
Posts: 46
bobcal2000 hasn't been rated much yet
Default Re: I've got Samba 1/2 working, Please help with Printing

How do I know if the server is set to allow guests?

Sitting at the keyboard of the machine 192.168.0.10 and putting this address in the web browser http://localhost:631 and click the Printers Tab. This is the URI I see. That is were I got the URI to paste into the last post. Then I Modify the printer I choice Device: Windows Printer via SAMBA and enter the Device URI in the format of:

smb://root:rootpassword@VMWWG/192.168.0.10/hpofficejetk80xi

But it does not show the username and password in the printer tab, it removes the username and password.

If I "Print Test Page" the job shows up in the Jobs tab as "held since ..." if I release the job, it goes "processing since" for a minute and then back to "held since"

I still have the error "NT_STATUS_ACCESS_DENIED opening remote spool Test on the Printers tab.
__________________
Bobby
openSUSE Very Dangerous Novice User
Reply With Quote
  #24 (permalink)  
Old 26-Sep-2009, 21:07
bobcal2000's Avatar
Puzzled Penguin
 
Join Date: Jun 2009
Location: NJ - USA
Posts: 46
bobcal2000 hasn't been rated much yet
Default Re: I've got Samba 1/2 working, Please help with Printing

Reading some troubleshooting HowTos of CUPS:

I added root to SAMBA using smbpasswd and the error is gone. I Canceled the jobs in the queue and then I tried another Print Test Page. No jon appeared in the jobs folder this time. But nothing printed.

ERROR Log

I [26/Sep/2009:22:03:20 -0400] Saving printers.conf...
E [26/Sep/2009:22:03:20 -0400] [Job 1708313] Session setup failed: NT_STATUS_LOGON_FAILURE
I [26/Sep/2009:22:03:20 -0400] Saving printers.conf...
E [26/Sep/2009:22:03:20 -0400] [Job 1708313] Session setup failed: NT_STATUS_LOGON_FAILURE
I [26/Sep/2009:22:03:20 -0400] Saving printers.conf...
E [26/Sep/2009:22:03:22 -0400] Print-Job: Unauthorized
I [26/Sep/2009:22:03:22 -0400] [Job 1708313] Completed successfully.
I [26/Sep/2009:22:03:22 -0400] Started "/usr/lib64/cups/cgi-bin/printers.cgi" (pid=14960)
I [26/Sep/2009:22:03:26 -0400] Started "/usr/lib64/cups/cgi-bin/admin.cgi" (pid=14964)


ACCESS log

localhost - - [26/Sep/2009:22:03:22 -0400] "POST / HTTP/1.1" 200 135 CUPS-Get-Default successful-ok
localhost - - [26/Sep/2009:22:03:22 -0400] "POST / HTTP/1.1" 200 530 Get-Printer-Attributes successful-ok
localhost - - [26/Sep/2009:22:03:22 -0400] "POST / HTTP/1.1" 200 464 Get-Jobs successful-ok
localhost - root [26/Sep/2009:22:03:22 -0400] "GET /printers/hpofficejetk80xi HTTP/1.1" 200 6589 - -
localhost - - [26/Sep/2009:22:03:26 -0400] "GET /admin HTTP/1.1" 200 0 - -
localhost - - [26/Sep/2009:22:03:26 -0400] "POST / HTTP/1.1" 200 104 Get-Subscriptions client-error-not-found
localhost - - [26/Sep/2009:22:03:26 -0400] "GET /admin HTTP/1.1" 200 6007 - -
localhost - - [26/Sep/2009:22:03:28 -0400] "GET /admin/log/error_log HTTP/1.1" 200 42147 - -
localhost - - [26/Sep/2009:22:04:46 -0400] "GET /admin/log/ HTTP/1.1" 403 0 - -
localhost - - [26/Sep/2009:22:04:48 -0400] "GET /admin/log/error_log HTTP/1.1" 304 0 - -


PAGE Log

hpofficejetk80xi root 1708312 [26/Sep/2009:22:01:43 -0400] 1 1 - localhost
hpofficejetk80xi root 1708313 [26/Sep/2009:22:03:21 -0400] 1 1 - localhost
__________________
Bobby
openSUSE Very Dangerous Novice User
Reply With Quote
  #25 (permalink)  
Old 26-Sep-2009, 21:09
swerdna's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Oz
Posts: 4,869
swerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the rough
Default Re: I've got Samba 1/2 working, Please help with Printing

Quote:
Originally Posted by bobcal2000 View Post
How do I know if the server is set to allow guests?

Sitting at the keyboard of the machine 192.168.0.10 and putting this address in the web browser http://localhost:631 and click the Printers Tab. This is the URI I see. That is were I got the URI to paste into the last post. Then I Modify the printer I choice Device: Windows Printer via SAMBA and enter the Device URI in the format of:

smb://root:rootpassword@VMWWG/192.168.0.10/hpofficejetk80xi

But it does not show the username and password in the printer tab, it removes the username and password.

If I "Print Test Page" the job shows up in the Jobs tab as "held since ..." if I release the job, it goes "processing since" for a minute and then back to "held since"

I still have the error "NT_STATUS_ACCESS_DENIED opening remote spool Test on the Printers tab.
There seems to be some confusion as to what is the server and what is a client, and which URI should be used on the server and which URI should be used on a client.

The printer is physically attached to the server. The URI as viewed from localhost:631 on the server should be the direct physical queue address, not a network address. It should be something like usb://queuename/. It can never be an address starting with smb://

The client is a remote computer. Clients have addresses starting with smb://
__________________
Drop in and visit some time.
Reply With Quote
  #26 (permalink)  
Old 26-Sep-2009, 21:13
swerdna's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Oz
Posts: 4,869
swerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the rough
Default Re: I've got Samba 1/2 working, Please help with Printing

Quote:
Originally Posted by bobcal2000 View Post
Reading some troubleshooting HowTos of CUPS:

I added root to SAMBA using smbpasswd and the error is gone. I Canceled the jobs in the queue and then I tried another Print Test Page. No jon appeared in the jobs folder this time. But nothing printed.

ERROR Log

I [26/Sep/2009:22:03:20 -0400] Saving printers.conf...
E [26/Sep/2009:22:03:20 -0400] [Job 1708313] Session setup failed: NT_STATUS_LOGON_FAILURE
I [26/Sep/2009:22:03:20 -0400] Saving printers.conf...
E [26/Sep/2009:22:03:20 -0400] [Job 1708313] Session setup failed: NT_STATUS_LOGON_FAILURE
I [26/Sep/2009:22:03:20 -0400] Saving printers.conf...
E [26/Sep/2009:22:03:22 -0400] Print-Job: Unauthorized
I [26/Sep/2009:22:03:22 -0400] [Job 1708313] Completed successfully.
I [26/Sep/2009:22:03:22 -0400] Started "/usr/lib64/cups/cgi-bin/printers.cgi" (pid=14960)
I [26/Sep/2009:22:03:26 -0400] Started "/usr/lib64/cups/cgi-bin/admin.cgi" (pid=14964)


ACCESS log

localhost - - [26/Sep/2009:22:03:22 -0400] "POST / HTTP/1.1" 200 135 CUPS-Get-Default successful-ok
localhost - - [26/Sep/2009:22:03:22 -0400] "POST / HTTP/1.1" 200 530 Get-Printer-Attributes successful-ok
localhost - - [26/Sep/2009:22:03:22 -0400] "POST / HTTP/1.1" 200 464 Get-Jobs successful-ok
localhost - root [26/Sep/2009:22:03:22 -0400] "GET /printers/hpofficejetk80xi HTTP/1.1" 200 6589 - -
localhost - - [26/Sep/2009:22:03:26 -0400] "GET /admin HTTP/1.1" 200 0 - -
localhost - - [26/Sep/2009:22:03:26 -0400] "POST / HTTP/1.1" 200 104 Get-Subscriptions client-error-not-found
localhost - - [26/Sep/2009:22:03:26 -0400] "GET /admin HTTP/1.1" 200 6007 - -
localhost - - [26/Sep/2009:22:03:28 -0400] "GET /admin/log/error_log HTTP/1.1" 200 42147 - -
localhost - - [26/Sep/2009:22:04:46 -0400] "GET /admin/log/ HTTP/1.1" 403 0 - -
localhost - - [26/Sep/2009:22:04:48 -0400] "GET /admin/log/error_log HTTP/1.1" 304 0 - -


PAGE Log

hpofficejetk80xi root 1708312 [26/Sep/2009:22:01:43 -0400] 1 1 - localhost
hpofficejetk80xi root 1708313 [26/Sep/2009:22:03:21 -0400] 1 1 - localhost
To add root to the samba user database is catastrophic. You should remove it.

You are jumping from place to place without pausing long enough to follow the diagnostic path I'm trying to put out for you.
__________________
Drop in and visit some time.
Reply With Quote
  #27 (permalink)  
Old 26-Sep-2009, 21:15
swerdna's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Oz
Posts: 4,869
swerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the rough
Default Re: I've got Samba 1/2 working, Please help with Printing

Please do this:

The machine where the printer is attached. What operating system is it running? If it's Linux, can you sit at the keyboard, open a text file and print the text file to the attached printer?
__________________
Drop in and visit some time.
Reply With Quote
  #28 (permalink)  
Old 26-Sep-2009, 21:20
bobcal2000's Avatar
Puzzled Penguin
 
Join Date: Jun 2009
Location: NJ - USA
Posts: 46
bobcal2000 hasn't been rated much yet
Default Re: I've got Samba 1/2 working, Please help with Printing

A little more information: From a Windows client. The firewall on Host-OS (the SAMBA Server - 192-168.0.10) is turned off. ICMP works and the file share still works.

Windows PowerShell
Copyright (C) 2006 Microsoft Corporation. All rights reserved.

PS C> telnet Host-OS 631
Connecting To Host-OS...Could not open connection to the host, on port 631: Connect failed
PS C> ping Host-OS

Pinging Host-OS [192.168.0.10] with 32 bytes of data:

Reply from 192.168.0.10: bytes=32 time<1ms TTL=64
Reply from 192.168.0.10: bytes=32 time<1ms TTL=64
Reply from 192.168.0.10: bytes=32 time<1ms TTL=64
Reply from 192.168.0.10: bytes=32 time<1ms TTL=64

Ping statistics for 192.168.0.10:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
PS C>
__________________
Bobby
openSUSE Very Dangerous Novice User
Reply With Quote
  #29 (permalink)  
Old 29-Sep-2009, 20:18
bobcal2000's Avatar
Puzzled Penguin
 
Join Date: Jun 2009
Location: NJ - USA
Posts: 46
bobcal2000 hasn't been rated much yet
Default Re: I've got Samba 1/2 working, Please help with Printing

I have played around with several settings and now the jobs are showing complete in CUPS admin. They are just not printing. Everything says the printer is working except it don't print!
__________________
Bobby
openSUSE Very Dangerous Novice User
Reply With Quote
  #30 (permalink)  
Old 29-Sep-2009, 20:28
swerdna's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Oz
Posts: 4,869
swerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the rough
Default Re: I've got Samba 1/2 working, Please help with Printing

I can't help unless you supply the info I need to help you. Perhaps someone else can.
__________________
Drop in and visit some time.
Reply With Quote
Reply
Page 3 of 5 12 3 45

Bookmarks

Tags
cups, printing, samba


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2