Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-06-2006, 07:53 AM
|
#1
|
LQ Newbie
Registered: Feb 2006
Posts: 13
Rep:
|
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
|
|
|
02-06-2006, 09:00 AM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Rep:
|
Looks like you forgot the supervisor's password.
'smb://supervisor:PASSWORDHERE@10.0.0.24/okib4300'
I am just guessing...
|
|
|
02-07-2006, 06:10 AM
|
#3
|
LQ Newbie
Registered: Feb 2006
Posts: 13
Original Poster
Rep:
|
Noops
The supervidor just doesnt have password
|
|
|
02-07-2006, 06:36 AM
|
#4
|
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Rep:
|
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".
|
|
|
02-09-2006, 07:54 AM
|
#5
|
LQ Newbie
Registered: Feb 2006
Posts: 13
Original Poster
Rep:
|
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!!!
|
|
|
02-09-2006, 08:43 AM
|
#6
|
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Rep:
|
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 supervisor  assword 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.
|
|
|
02-09-2006, 11:05 AM
|
#7
|
Member
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795
Rep:
|
Why not add the printer through the web interface? It's a tad easier...
|
|
|
02-09-2006, 08:33 PM
|
#8
|
Senior Member
Registered: Jan 2004
Posts: 1,420
Rep: 
|
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/
|
|
|
02-10-2006, 05:55 AM
|
#9
|
LQ Newbie
Registered: Feb 2006
Posts: 13
Original Poster
Rep:
|
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...
|
|
|
02-10-2006, 08:37 AM
|
#10
|
LQ Newbie
Registered: Feb 2006
Posts: 13
Original Poster
Rep:
|
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#
|
|
|
02-13-2006, 04:34 AM
|
#11
|
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Rep:
|
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.
|
|
|
02-13-2006, 07:25 AM
|
#12
|
LQ Newbie
Registered: Feb 2006
Posts: 13
Original Poster
Rep:
|
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!!
|
|
|
All times are GMT -5. The time now is 09:05 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|