LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-06-2006, 07:53 AM   #1
dutche
LQ Newbie
 
Registered: Feb 2006
Posts: 13

Rep: Reputation: 0
Trying to install a printer with CUPS


Hi folks, I'm trying to configure a win2k printer via CUPS but I dont get it!!
The win2k is the 10.0.0.24 and the printer name is 'okib4300' in the URI section in CUPS, I put 'smb://supervisor@10.0.0.24/okib4300'
'supervisor' is the user allowed to access the machine.
But whenever I send a print test page, it returns me: "Tree connect failed" and then doesnt prints.
I've searched on error_log and find it:




I [06/Feb/2006:11:50:22 -0200] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=2603)
I [06/Feb/2006:11:50:24 -0200] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=2605)
I [06/Feb/2006:11:50:33 -0200] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=2608)
I [06/Feb/2006:11:50:37 -0200] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=2609)
I [06/Feb/2006:11:50:41 -0200] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=2610)
I [06/Feb/2006:11:50:44 -0200] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=2611)
I [06/Feb/2006:11:50:51 -0200] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=2612)
I [06/Feb/2006:11:50:51 -0200] Setting oki device-uri to "smb://10.0.0.24/OKIB4300" (was "file:/dev/null".)
I [06/Feb/2006:11:50:51 -0200] Setting oki printer-is-accepting-jobs to 1 (was 0.)
I [06/Feb/2006:11:50:51 -0200] Setting oki printer-state to 3 (was 5.)
I [06/Feb/2006:11:50:51 -0200] Saving printers.conf...
I [06/Feb/2006:11:50:51 -0200] New printer 'oki' added by 'root'.
I [06/Feb/2006:11:50:53 -0200] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=2613)
I [06/Feb/2006:11:50:55 -0200] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=2614)
I [06/Feb/2006:11:50:55 -0200] Adding start banner page "none" to job 10.
I [06/Feb/2006:11:50:55 -0200] Adding end banner page "none" to job 10.
I [06/Feb/2006:11:50:55 -0200] Job 10 queued on 'oki' by 'root'.
I [06/Feb/2006:11:50:55 -0200] Started filter /usr/lib/cups/filter/pstops (PID 2615) for job 10.
I [06/Feb/2006:11:50:55 -0200] Started filter /usr/lib/cups/filter/foomatic-rip (PID 2616) for job 10.
I [06/Feb/2006:11:50:55 -0200] Started backend /usr/lib/cups/backend/smb (PID 2617) for job 10.
E [06/Feb/2006:11:50:55 -0200] [Job 10] No ticket cache found for userid=0
E [06/Feb/2006:11:50:55 -0200] [Job 10] Can not get the ticket cache for root
E [06/Feb/2006:11:50:55 -0200] [Job 10] Tree connect failed
E [06/Feb/2006:11:50:55 -0200] [Job 10] Unable to connect to SAMBA host, will retry in 60 seconds...foomatic-rip version $Revision: 3.48 $ running...
I [06/Feb/2006:11:50:57 -0200] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=2622)



But I can do an smbmount on this machine that I have any problem to mount any directory...but print I cant do

Does anybody can help me??

Regards
 
Old 02-06-2006, 09:00 AM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Blog Entries: 2

Rep: Reputation: 68
Looks like you forgot the supervisor's password.
'smb://supervisor:PASSWORDHERE@10.0.0.24/okib4300'

I am just guessing...
 
Old 02-07-2006, 06:10 AM   #3
dutche
LQ Newbie
 
Registered: Feb 2006
Posts: 13

Original Poster
Rep: Reputation: 0
Noops

The supervidor just doesnt have password
 
Old 02-07-2006, 06:36 AM   #4
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Blog Entries: 2

Rep: Reputation: 68
Try this command as a regular user:

$ smbclient //10.0.0.24/okib4300 -U supervisor

if you get the smbclient prompt "smb: \>" them you have access to it and the problem is in another place.

I already have a problem acessing the smb shares without a password. This is why I want to check if the password less access is working.

If you don't get the smbclient prompt, try to add a password for this account and try again with smbclient, this time adding a password to the "-U supervisor:PASSWORDHERE".
 
Old 02-09-2006, 07:54 AM   #5
dutche
LQ Newbie
 
Registered: Feb 2006
Posts: 13

Original Poster
Rep: Reputation: 0
Ok, done!! but.......

I tried the command you gave me, was asked me a password and I leave it clean, just "enter" and I got this:


root@du# smbclient //10.0.0.24/okib4300 -U supervisor
Password:
Domain=[MINSVRBD] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
smb: \> ls
NT_STATUS_ACCESS_DENIED listing \*

0 blocks of size 0. 0 blocks available
smb: \>


Have you any idea of what can be this error??
Thanks bro!!!
 
Old 02-09-2006, 08:43 AM   #6
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Blog Entries: 2

Rep: Reputation: 68
It's normal in this case. You can issue the ls just for directories. I don't know what is the valid command for a printer.

Note that even you don't supply a password it asked one for you.
I think that is the problem.
Try to add a password for this account. Them repeat this command with the -U supervisorassword and at this time no password it will be asked and you will have immediate access. If so, just put the same password in the smb url above. It should work now.
 
Old 02-09-2006, 11:05 AM   #7
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
Why not add the printer through the web interface? It's a tad easier...
 
Old 02-09-2006, 08:33 PM   #8
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by mdarby
Why not add the printer through the web interface? It's a tad easier...
Good idea...this is how I configured my HP printer using cups...

Point yr browser to

http://localhost:631/
 
Old 02-10-2006, 05:55 AM   #9
dutche
LQ Newbie
 
Registered: Feb 2006
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by JockVSJock
Good idea...this is how I configured my HP printer using cups...

Point yr browser to

localhost:631

Was the first thing I tried, but doesnt work and now I must know where is the error...cuz the printer doesnt prints anyway...
 
Old 02-10-2006, 08:37 AM   #10
dutche
LQ Newbie
 
Registered: Feb 2006
Posts: 13

Original Poster
Rep: Reputation: 0
Other try

This is the response I see when I try the command "smbclient -L 10.0.0.24 -U supervisor -N" it doesnt asks a passwork, but give some strange message in "session request..."


root@du:/etc/cups# smbclient -L 10.0.0.24 -U supervisor -N
Domain=[MINSVRBD] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
impressora Disk
hp Printer HP LaserJet 1200 Series PCL 6
IPC$ IPC IPC remoto
print$ Disk Drivers de impressora
Inetpub Disk
Clientes Disk
D Disk
USUARIOS Disk
Viasoft Disk
M2000 Disk
MINICOM Disk
ADMIN$ Disk Administração remota
C$ Disk Recurso compartilhado padrão
session request to 10.0.0.24 failed (Called name not present)
session request to 10 failed (Called name not present)
Domain=[MINSVRBD] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]

Server Comment
--------- -------

Workgroup Master
--------- -------
root@du:/etc/cups#
 
Old 02-13-2006, 04:34 AM   #11
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Blog Entries: 2

Rep: Reputation: 68
I insist. Use a password for the supervisor account. I already had that problem once and I fixed by assigning a password to the printer account.

I don't known where is the problem: CUPS, SAMBA or Windows. For me, at that point, was important to put the printer to work. I never go back to found the roots of the problem.

If you may want to understand what is going on, assign the password to the supervisor account.
It may work or not. If not work, at least we can put aside that password issue.
If works you may google for a fix for a specific problem (null password) or search/post at samba's mailing lists.

good luck,

PS: Please, if you do that, post your results back here. I'm really interested in your findings.

Last edited by marozsas; 02-13-2006 at 04:45 AM.
 
Old 02-13-2006, 07:25 AM   #12
dutche
LQ Newbie
 
Registered: Feb 2006
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by marozsas
I insist. Use a password for the supervisor account. I already had that problem once and I fixed by assigning a password to the printer account.

I don't known where is the problem: CUPS, SAMBA or Windows. For me, at that point, was important to put the printer to work. I never go back to found the roots of the problem.

If you may want to understand what is going on, assign the password to the supervisor account.
It may work or not. If not work, at least we can put aside that password issue.
If works you may google for a fix for a specific problem (null password) or search/post at samba's mailing lists.

good luck,

PS: Please, if you do that, post your results back here. I'm really interested in your findings.

Yo man, it works!!!!
I just created another user, called test with pass = test ...and put smb://test:test@..... and worked!!!
Thanx a lot!!! Very helpful!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Printer / CUPS-PDF Printer Issue in SuSE 10 jlstratton42 SUSE / openSUSE 0 12-21-2005 11:04 AM
Help printer from a samba shared printer from linux (using cups) epod69 Linux - Networking 3 12-04-2005 10:44 PM
Z600 CUPS Printer Driver install idot Linux - Software 0 08-12-2005 12:30 PM
How do you install a printer for CUPS? govert Linux - Hardware 5 05-17-2005 07:57 AM
Printer : CUPS install simeandrews Linux - Hardware 3 05-21-2004 12:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration