LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 04-28-2005, 11:40 PM   #1
Mr_C
Member
 
Registered: Jan 2004
Location: Trinidad & Tobago
Distribution: Slackware
Posts: 317

Rep: Reputation: 30
howto see xp shared printer


Xp has HP 840c Laserjet shared. I see it in windows why I try to print but linux doesn't

Code:
 l-(clay@SOL:pts/2)---------------------------------------------------------------------(~)
(%)- smbclient -L homeibm -N    
Domain=[HOMEIBM] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Sharename       Type      Comment
        ---------       ----      -------
        E$              Disk      Default share
        IPC$            IPC       Remote IPC
        print$          Disk      Printer Drivers
        SharedDocs      Disk      
        access          Disk      
        DBK (E)         Disk      
        NV (D)          Disk      
        ADMIN$          Disk      Remote Admin
        C$              Disk      Default share
        Printer         Printer   HP DeskJet 840C/841C/842C/843C
Domain=[HOMEIBM] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

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

        Workgroup            Master
        ---------            -------
however smbclient knows the share name is Printer.

Code:
/etc/rc.d/rc.cups start
then I do the localhost:631

Add Printer -> Name: 840c -> Device: "windows printer via samba" -> URL: smb://homeibm/Printer -> Make: HP -> HP840c foomatic/hpijs (recommeded) -> Print test page


Code:
   	Description:
Location:
Printer State: idle, accepting jobs.
"Connection failed with error NT_STATUS_ACCESS_DENIED"
Device URI: smb://homeibm/Printer

I don't get it.
 
Old 04-30-2005, 01:44 AM   #2
Mr_C
Member
 
Registered: Jan 2004
Location: Trinidad & Tobago
Distribution: Slackware
Posts: 317

Original Poster
Rep: Reputation: 30
anyone?
 
Old 04-30-2005, 01:48 AM   #3
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Quote:
Originally posted by Mr_C
anyone?
Well with errors like: "Connection failed with error NT_STATUS_ACCESS_DENIED", would tell me that this is some type of authentication and permissions error on Windows side denying access to the printer..
 
Old 04-30-2005, 02:51 AM   #4
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 50
try
smb://homeibmUser:homeibmPassword@homeibm/Printer
 
Old 04-30-2005, 02:16 PM   #5
Mr_C
Member
 
Registered: Jan 2004
Location: Trinidad & Tobago
Distribution: Slackware
Posts: 317

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by mrcheeks
try
smb://homeibmUser:homeibmPassword@homeibm/Printer
whats the exact syntax for that? with spaces I mean. Isn't there supposed to be a % for separating passwords? ( I tried it and it didn't work)

Of course I know its to do with authentication. However on the XP side I explicitly have simple file sharing to allow (nobody/guest) to access any share. So no passwords should be necessary???
 
Old 04-30-2005, 04:16 PM   #6
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 50
so what about that firewall of yours?
 
Old 04-30-2005, 04:47 PM   #7
Mr_C
Member
 
Registered: Jan 2004
Location: Trinidad & Tobago
Distribution: Slackware
Posts: 317

Original Poster
Rep: Reputation: 30
lol what firewall. I don't have any firewalls enabled(2pc home setup). Default iptables config. I don't think it can be related to firewall because smbclient is seeing all smb broadcasts from other pc.
 
Old 04-30-2005, 08:20 PM   #8
robbow52
Member
 
Registered: Oct 2003
Location: Kentucky, USA
Distribution: Debian "SID"
Posts: 110

Rep: Reputation: 15
See if any of this helps:

http://www.linuxquestions.org/questi...52#post1578752
 
Old 04-30-2005, 08:28 PM   #9
robbow52
Member
 
Registered: Oct 2003
Location: Kentucky, USA
Distribution: Debian "SID"
Posts: 110

Rep: Reputation: 15
Quote:
Originally posted by robbow52
See if any of this helps:

http://www.linuxquestions.org/questi...52#post1578752
Just an added note, take a look at post 6 above to be sure that the XP box has Unix printing installed...
 
Old 04-30-2005, 10:08 PM   #10
Mr_C
Member
 
Registered: Jan 2004
Location: Trinidad & Tobago
Distribution: Slackware
Posts: 317

Original Poster
Rep: Reputation: 30
thank you, its working now

I did have unix print services enabled but the following parameters were not correct:
smb://workgroup/guest@server/sharename
 
  


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
Help printer from a samba shared printer from linux (using cups) epod69 Linux - Networking 3 12-04-2005 11:44 PM
CUPS and Shared Printer cthomas Linux - Networking 1 09-17-2005 06:22 PM
Printing to a shared XP printer nyumedic2000 Linux - Newbie 1 05-17-2005 10:46 PM
Shared printer problem AmdMhz Linux - Networking 17 10-13-2004 01:40 PM
Has anybody shared a PRINTER to Mac OS X webvandals Linux - Hardware 7 05-03-2004 09:35 PM


All times are GMT -5. The time now is 08:48 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration