LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-06-2011, 12:39 PM   #1
jcmahne
Member
 
Registered: Nov 2010
Posts: 43

Rep: Reputation: 3
cannot see windows share files


I can see linux share folders from windows,but not the windows share files from Linux.The windows pc name is jm-pc and the share file is temp.
When the command nmblookup is used it discovers the Windows pc ok.

Code:
nmblookup jm-pc
querying jm-pc on 10.0.0.255
10.0.0.3 jm-pc<00>
i created a folder /home/windows and ran the smbmount command

Code:
root[~]#  smbmount \\\\jm-pc\\temp /home/windows
mount error: could not resolve address for jm-pc: No address associated with hostname
No ip address specified and hostname not found
When i try to run smbclient,and enter the correct password that was created for samba(which is the same password as the Windows pc):
Code:
/usr/bin/smbclient \\\\jm-pc\\temp           
Enter root's password: 
Connection to jm-pc failed (Error NT_STATUS_BAD_NETWORK_NAME)
When i run the puppy linux live cd, and use the Puppy Pnethood i do access temp share folder.So it does not seem as though anything is wrong with the folder itself, or the password being used?

I need help with this...
 
Old 03-06-2011, 09:57 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Hi jcmahne, Welcome to LQ. What does the following return?

Code:
$ findsmb
$ ping -c4 jm-pc
$ ping -c4 10.0.0.3
Good luck. ;-)
 
1 members found this post helpful.
Old 03-07-2011, 02:17 AM   #3
jcmahne
Member
 
Registered: Nov 2010
Posts: 43

Original Poster
Rep: Reputation: 3
Thnks very much for helping.I got this result below: Then found out i had to add the name to the etc/hosts file.

root[~]# findsmb

*=DMB
+=LMB
IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION
---------------------------------------------------------------------
10.0.0.5 ZENWALK [WORKGROUP] [Unix] [Samba 3.5.2]
root[~]# ping -c4 jm-pc
ping: unknown host jm-pc
root[~]# ping -c4 10.0.0.3
PING 10.0.0.3 (10.0.0.3) 56(84) bytes of data.
64 bytes from 10.0.0.3: icmp_req=1 ttl=128 time=2.20 ms
64 bytes from 10.0.0.3: icmp_req=2 ttl=128 time=2.42 ms
64 bytes from 10.0.0.3: icmp_req=3 ttl=128 time=2.28 ms
64 bytes from 10.0.0.3: icmp_req=4 ttl=128 time=2.78 ms

--- 10.0.0.3 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 2.209/2.426/2.781/0.224 ms
root[~]#

Last edited by jcmahne; 03-07-2011 at 01:19 PM.
 
Old 03-07-2011, 01:18 PM   #4
jcmahne
Member
 
Registered: Nov 2010
Posts: 43

Original Poster
Rep: Reputation: 3
Smile

Thanks again for the help
I have a few questions,because even though everything is working,i have no clue as to why it works.

Firstly,when i use the puppy live cd it finds the Windows pc,but i checked the puppy etc/hosts file and it does not have the Windows pc name added.So the question is: How did the pNethood software of puppy find it (jm-pc)?

Secondly,i added a user with smbpasswd but smbmount does not work and keeps failing with a password error.There was also a message "Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)".smbclient also fails.

So i tried this mount command and it worked.
mount -t smbfs -o username=jcmahne,password=jcmahne //jm-pc/temp /home/windows.
 
Old 03-07-2011, 09:08 PM   #5
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
You're Welcome, Glad you're sorted.

My guess is the puppy versions of dhcpd.conf or smb.conf takes care of the netbios function.

Good luck. ;-)
 
  


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
How to share windows files with Linux harmt01 Linux - Networking 8 10-12-2006 03:25 PM
how to share files with windows Donb SUSE / openSUSE 6 11-28-2005 10:11 PM
Using files on a windows share castrox Linux - Software 1 01-26-2005 04:46 AM
How do I share files between Suse and Windows XP unmasterfulyoda Linux - Networking 1 06-07-2004 05:21 PM
How Do I Share Files With Windows? AFI_Flame Linux - Networking 15 05-11-2004 03:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:04 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