LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-06-2004, 02:11 AM   #1
dafatdude
LQ Newbie
 
Registered: Oct 2003
Posts: 18

Rep: Reputation: 0
CUPS windows printer sharing - Connection Refused


Hi guys,

i'm having a damn hard time getting this to work atm. I'm following a guide from this site:

http://www.faqs.org/docs/Linux-mini/...ing_to_windows

I've followed everything right up to the first lpadmin line and when i type the command it says i get a response like this:
Code:
root@dafat2:/usr/lib/cups/backend# lpadmin -p RicePrinter -v smb://dafatdude/CanonBub -P /root/inkjet.ppd
lpadmin: Unable to connect to server: Connection refused
I can't see why this wont let me connect. I can view my windows share using a simple:
Code:
root@dafat2:/usr/lib/cups/backend# smbclient -L dafatdude
added interface ip=192.168.0.14 bcast=192.168.0.255 nmask=255.255.255.0
Password:
Domain=[WORKGROUP] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Sharename      Type      Comment
        ---------      ----      -------
        E$             Disk      Default share
        IPC$           IPC       Remote IPC
        D$             Disk      Default share
        My Music       Disk
        print$         Disk      Printer Drivers
        CanonBub       Printer   Canon Bubble-Jet BJC-255SP
        Downloads      Disk
        F$             Disk      Default share
        ADMIN$         Disk      Remote Admin
        C$             Disk      Default share

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

        Workgroup            Master
        ---------            -------
Do i need to put in a username or a password in the lpadmin part? At the moment there isn't any password to view the shares....

can someone help me out here?
 
Old 06-06-2004, 04:44 PM   #2
andrewdodsworth
Member
 
Registered: Oct 2003
Location: United Kingdom
Distribution: SuSE 10.0 - 11.4
Posts: 347

Rep: Reputation: 30
I only successfully got to print from linux box to windows printer by using:

smb://userassword@server/printername

This was even when i had shared the printer to the whole world with no password.
The user and password have to exist on the windows machine.
I assume you're not using domains or anything but the same logic applies - whatever name and password you log on to the windows box you put in.

Hope this helps
 
  


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
sharing CUPS printer with SAMBA shellcode Linux - General 14 07-30-2005 09:15 AM
cups sharing printer quarry_06 Linux - Networking 1 11-21-2004 05:08 PM
sharing CUPS printer between Linux machines hairydan Linux - Software 0 09-10-2004 08:35 PM
Samba printer sharing and CUPS subaruwrx Linux - Networking 5 08-27-2004 11:37 AM
suse. connection to cups refused divali Linux - Software 1 11-11-2003 02:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:23 AM.

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