LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-28-2007, 11:11 AM   #1
kubed_lovee
LQ Newbie
 
Registered: Jun 2007
Location: cairo , Egypt
Distribution: Fedora
Posts: 25

Rep: Reputation: 0
Exclamation Samba (sharing with M$ Windows) Problem ?!


i get this error massage when i try to open my sharing folder from the windows network folder


The folder contents could not be displayed.
"Windows Network: localhost" couldn't be found. Perhaps it has recently been deleted.

i dont know what is wrong i have tried every thing in configuring the sharing folders

- from the conf file
- from samba GUI
- permission to all user to read and write


i really want to know what is happening...
 
Old 07-28-2007, 11:29 AM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
have you tried connecting with an IP address?
 
Old 07-28-2007, 08:01 PM   #3
kubed_lovee
LQ Newbie
 
Registered: Jun 2007
Location: cairo , Egypt
Distribution: Fedora
Posts: 25

Original Poster
Rep: Reputation: 0
sorry ,i dont know what are u talking about
 
Old 07-30-2007, 11:29 AM   #4
bskrakes
Member
 
Registered: Sep 2006
Location: Canada, Alberta
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251

Rep: Reputation: 32
when you connect to your SAMBA share from your windows machine try this:
\\192.168.0.111(YOUR SAMBA machines IP)\share_name

So i have a share like this:
\\192.168.0.101\media
 
Old 07-30-2007, 11:46 AM   #5
bskrakes
Member
 
Registered: Sep 2006
Location: Canada, Alberta
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251

Rep: Reputation: 32
Arrow How to map a Network Drive

here i made this for you (and others):
How to Map a Network Drive

if you dont know your password then you will need to reset it (if you have admin rights) or else contact your network administrator.

if you need any help feel free to e-mail me
 
Old 07-30-2007, 11:55 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
localhost refers to the local loopback adapter. This is a virtual device with the IP address 127.0.0.1. So you might be trying to access the client computer and not the server. Is your linux box hostname localhost?

Add this line to your smb.conf file.

netbios name = server

Change server to anything you want. This name will then be displayed in windows network neighborhood. Be sure to restart samba. It might take several minutes for windows to actually see the new name in network neighborhood.

An Internet Protocol (IP) address in a nutshell is a unique number that identifies devices on a network.
 
Old 08-27-2007, 10:51 AM   #7
a.ilic
LQ Newbie
 
Registered: Aug 2007
Posts: 8

Rep: Reputation: 0
Problem accessing files - Samba

Quote:
Originally Posted by michaelk View Post
localhost refers to the local loopback adapter. This is a virtual device with the IP address 127.0.0.1. So you might be trying to access the client computer and not the server. Is your linux box hostname localhost?

Add this line to your smb.conf file.

netbios name = server

Change server to anything you want. This name will then be displayed in windows network neighborhood. Be sure to restart samba. It might take several minutes for windows to actually see the new name in network neighborhood.

An Internet Protocol (IP) address in a nutshell is a unique number that identifies devices on a network.
Hi there!

This is my first post, so I expect an answer :-)

I hve the same problem, mentioned above. I've changed 'netbios name' variable, but the problem remains. It it still represented on the network as 'localhost', and I can't access it.

Regards...
 
Old 08-27-2007, 02:21 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
a.ilic,
Welcome to LinuxQuestions. What linux distribution/version are you running?
Did you restart samba?
 
Old 08-28-2007, 08:01 PM   #9
a.ilic
LQ Newbie
 
Registered: Aug 2007
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
a.ilic,
Welcome to LinuxQuestions. What linux distribution/version are you running?
Did you restart samba?
Thank you.

I use Fedora 7 (kernel 2.6.21).

This is the manual that I used to set up Samba server.
http://www.mjmwired.net/resources/mj...-f7.html#samba

After I set it up, I could see my server. It was named 'Localhost' and I could not access it. After I read here that the problem can be in the name 'localhost' (because of a loop back driver), I've set up a new 'netbios name', but from then, I can't see my Samba server.

After every change I restart Samba server.

Confusing is that, that I can see shared contents calling smb://192.168.1.34/ from browser (on local computer, of course).

When I type in terminal command smbclient -L localhost -U% I got this result:

Quote:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.25-2.fc7]

Sharename Type Comment
--------- ---- -------
netshare Disk
IPC$ IPC IPC Service (Samba Server Version 3.0.25-2.fc7)
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.25-2.fc7]

Server Comment
--------- -------
ACA-SASKA
LOCALHOST Samba Server Version 3.0.25-2.fc7

Workgroup Master
--------- -------
WORKGROUP ACA-SASKA
Anyway, the problem remains. I can't see the samba server anymore from local computer (except from browser), and also from any other computer on the network. I could see it as a 'localhost' before (just see, not access), and now I can't.

This is the part of my smb.conf file:

Quote:
[global]
workgroup = WORKGROUP
server string = Samba Server Version %v

netbios name = Gigabyte-Fedora

[netshare]
path = /share
public = yes
writeable = yes
Any help is welcome. Thanks in advance!
 
Old 08-30-2007, 06:48 PM   #10
a.ilic
LQ Newbie
 
Registered: Aug 2007
Posts: 8

Rep: Reputation: 0
I found solution on page:
http://forums.fedoraforum.org/forum/...d.php?t=164650

The problem was, that in Fedora 7 you must separately start SMB and NMB services, as they are separated. In previous versions of Fedora, NMB was a part of Samba, so it was enough just to start SMB service.

In terminal, type next two commands:
sudo /etc/init.d/smb start
sudo /etc/init.d/nmb start

To start automaticly SMB and NMB services on boot, type these two commands in terminal:
sudo /sbin/chkconfig --level 35 smb on
sudo /sbin/chkconfig --level 35 nmb on

Problem solved!
 
Old 09-09-2007, 07:26 AM   #11
kubed_lovee
LQ Newbie
 
Registered: Jun 2007
Location: cairo , Egypt
Distribution: Fedora
Posts: 25

Original Poster
Rep: Reputation: 0
i have done that already but no use i guess this is another thing
 
Old 01-26-2008, 11:43 PM   #12
SunnyDaze
LQ Newbie
 
Registered: Apr 2005
Distribution: Real geeks know Linux is Linux (Ubuntu, Suse, Mandriva, etc....)
Posts: 5

Rep: Reputation: 0
Must give access to parent directories

I just spent a couple hours trying to figure this one out.

I was trying to share a sub-folder, but I hadn't allowed anyone to browse into the parent folders.

So I guess make sure your parent folders allow access if you want to share a sub-folder.

I'm not sure if this is the cause of your problem, but it is worth a try, especially since I was getting the exact same message, and it fixed my problem.
 
Old 01-26-2008, 11:53 PM   #13
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The first thing to do is to give your computer a real hostname. Localhost is an alias for 127.0.0.1 so if a client computer tries to access your server's share by the hostname "localhost", it will resolve to the client machine instead of the server.

Also post the [General] portion of your smb.conf config file. Make note of the "Security =" line. If it isn't present, then the default is "Security = User". If this is the case, make sure you use the "smbpasswd" program to enter your username & password in samba's smbpasswd file.

Another thing to check is that you have ports 137-139 open. These are used either for browsing or for transferring files.

Last edited by jschiwal; 01-26-2008 at 11:54 PM.
 
  


Reply

Tags
samba, sharing



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
XP password problem (file sharing with samba on Ubuntu Feisty and Windows XP) AhrenBa Linux - General 5 07-09-2007 08:26 AM
Samba windows client sharing Linux.Learner Linux - Networking 11 02-20-2007 09:14 PM
Sharing Windows Partition with Samba crash_bash Linux - Networking 9 06-26-2005 09:38 AM
Samba and Windows XP file sharing rattiane Linux - Networking 1 03-23-2005 09:47 AM
windows\linux samba sharing mullog Linux - Networking 18 01-26-2005 09:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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