LinuxQuestions.org
Register a domain and help support LQ
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 07-18-2006, 11:08 PM   #1
DiscreetControl
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Rep: Reputation: 0
smbclient -M xxx.xxx.xxx.xxx Doesnt Work


Just Installed Fedora Core 5, Samba Client Installed Newest Version Im Guesing.
Made Sure My Windows System Is Running The Messenger Service And Tested With Another Windows Machine With Net Send, It Worked. Read Many Forums & Google Searched But Cant Seem To Get It To Work. Ive Tried Linpopup But It Gives Me The Same Error Message, (session request failed/Connection to xxxxx failed)As The smbclient Command Does. I Can Ping The Windows System, Net Lookup Both The Machine Name And Ip Address Just Fine. Also I Can Connect To The Windows System Through The File Brower And Do Whatever I Want As If I Was On A Windows System. So Im Thinking Its Something To Do With Samba smbclient -M Switch. Ive Read Some Google Searches Where It Said Something About Editing The smb.conf but Im Not Sure What Command I Need Or Even If I Need To For This Purpose.

This Is What I Get In The Terminal.

[DiscreetControl@localhost ~]$ smbclient -M dim2350
Connection to dim2350 failed
[DiscreetControl@localhost ~]$ smbclient -M 192.168.1.101
session request failed
[DiscreetControl@localhost ~]$ smbclient -p 139 -M dim2350
Connection to dim2350 failed
[DiscreetControl@localhost ~]$ smbclient -p 139 -M 192.168.1.101
session request failed
[DiscreetControl@localhost ~]$

It Looks As If Samba Isnt Resolving Host Names. I Have A Router But I Dont Think I Have To Open This Port Due To Another Windows System Being Able To Net Send.

If You Need Any Other Information Just Let Me Know

Thanks In Advance
 
Old 07-18-2006, 11:20 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 117Reputation: 117
Try doing an 'smbclient -L HOST' to see if it can even get a list of resources. And remember you should be using NetBios names, not DNS names.
 
Old 07-19-2006, 05:51 PM   #3
DiscreetControl
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Original Poster
Rep: Reputation: 0
This Is What It Gave Me When I Tried smbclient -L

[DiscreetControl@localhost ~]$ smbclient -L 192.168.1.101
Password:
Domain=[DIM2350] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
IPC$ IPC Remote IPC
print$ Disk Printer Drivers
Printer Printer hp deskjet 845c
session request to 192.168.1.101 failed (Called name not present)
session request to 192 failed (Called name not present)
Domain=[DIM2350] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

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

Workgroup Master
--------- -------
[DiscreetControl@localhost ~]$ smbclient -L DIM2350
Password:
Domain=[DIM2350] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
IPC$ IPC Remote IPC
print$ Disk Printer Drivers
Printer Printer hp deskjet 845c
Domain=[DIM2350] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

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

Workgroup Master
--------- -------
[DiscreetControl@localhost ~]$

What Do You Mean Use NetBios Names And Not DNS Names?
 
Old 07-19-2006, 06:56 PM   #4
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 117Reputation: 117
Well, it's obviously able to connect to the server and authenticate successfully. It's possible that the remote system has the messenger service disabled, and so you are unable to send messages to them.
 
Old 07-19-2006, 08:11 PM   #5
DiscreetControl
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Thats The Problem I Know The Messenger Service Is Running As I Mentioned In The First Post.
I Setup The Messenger Service To Start And Start With Windows Personally On The Windows Box.

What Do You Mean Use NetBios Names And Not DNS Names?
 
Old 07-22-2006, 11:58 PM   #6
DiscreetControl
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Ok I Did Some More Research And I Added This To My smb.conf File. I Read By Adding This I Would Be Able To Recieve Messages...

message command = csh -c 'xedit %s;rm %s' &

Tried To Send A Net Send From Windows And Nothing...
But When I Tried To smbclient -M To The Windows System It Worked As Long As I Used DIM2350 Instead Of xxx.xxx.xxx.xxx.

[DiscreetControl@localhost ~]$ smbclient -M DIM2350
Connected. Type your message, ending it with a Control-D
Worked
sent 8 bytes
[DiscreetControl@localhost ~]$ smbclient -M 192.168.1.101
session request failed
[DiscreetControl@localhost ~]$ smbclient -M DIM2350 -I 192.168.1.101
Connected. Type your message, ending it with a Control-D
Worked
sent 8 bytes
[DiscreetControl@localhost ~]$ smbclient -p 139 -M DIM2350 -I 192.168.1.101
Connected. Type your message, ending it with a Control-D
Worked
sent 8 bytes
[DiscreetControl@localhost ~]$

Can Someone Tell Me Why smbclient -M Works Now. And Also Why IT Doesnt Work With The IP Address. And Also Why Im Not Able To Send Messages To The Linux System From Windows.

Or Am I Like The Only One With This Problem.
 
Old 07-23-2006, 12:04 AM   #7
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 117Reputation: 117
xedit cannot be run from the message command unless a DISPLAY is specified for it to connect to. Hence, the message is received, but it is unable to handle the message.

As far as putting in the IP address, you have to specify the destination by the Netbios name of the receiving machine.
 
Old 12-28-2007, 10:50 AM   #8
MaJJ
LQ Newbie
 
Registered: Dec 2007
Posts: 1

Rep: Reputation: 0
linpopup works great for me - I can send messages in both ways. I don't know how does samba catch messages in command line, but Linpopup shows them. 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
"Error, some other host already uses address XXX.XXX.XXX.XXX" mwbb_support Linux - Networking 5 01-20-2014 08:59 AM
Problem getting connection with a DLink Router with IP 10.xxx.xxx.xxx kezira Fedora 9 11-28-2005 10:31 PM
Problem getting connection with a DLink Router after setting static IP 10.xxx.xxx.xxx kezira Linux - Networking 1 11-09-2005 10:27 PM
Host XXX.XXX.XXX.XXX is not allowed to connect to this MySQL server ocavid Linux - Newbie 2 03-16-2005 09:40 AM
# ping -b xxx.xxx.xxx.255 porous Linux - Networking 2 10-13-2003 12:34 PM


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

Main Menu
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