LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-31-2006, 02:17 PM   #1
attockonian
LQ Newbie
 
Registered: Jun 2006
Posts: 10

Rep: Reputation: 0
A samba sharing server should have the ip that is in the hosts allow of smb.conf


Hi,

I had my smb.conf file with the following allowed hosts

hosts allow = 192.168.1.3 192.168.1.4
*Ip of my server was 192.168.1.2

I had to reboot my system and somehow my ip was changed to 192.168.1.3 ( it could be beacuse my laptop accquired *.3 when i reboot, but this is not the case). In then case when my server's ip was *.3 samba was sharing files with other pcs on the network.

So i did a netconfig and put 192.168.1.3 as the ip of my server, yet it was not working.

Then i thoght may be its conflicting with the 'hosts allow' in smb file. So I disabled hosts allow.

Now the question I have is this. A samba sharing server should have the ip that is in the hosts allow of smb.conf?
 
Old 08-31-2006, 02:49 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
The hosts allow line is for configuring which other boxes can connect to your samba server so the IP address of the samba server itself doesn't have to be there. A server shouldn't have a dynamic address - can you reconfigure it with a static IP address? That way you won't get this sort of problem.
 
  


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
"hosts allow" in smb.conf expects only FQDN, not alias or netbios name!? Not now, John! Linux - Networking 1 10-13-2006 05:17 AM
Reinstalling Samba doesn't recover the original /etc/samba/smb.conf Akhran Debian 2 11-11-2005 12:54 AM
samba conf smb.conf regnier Mandriva 5 02-17-2005 04:27 AM
smb.conf hosts allow shanenin Linux - Networking 2 01-01-2005 04:38 PM
samba server and smb.conf gogo Linux - Software 1 05-04-2001 07:00 PM


All times are GMT -5. The time now is 04:49 AM.

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