LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 11-05-2005, 05:33 AM   #1
nawin_g
LQ Newbie
 
Registered: Nov 2005
Posts: 19

Rep: Reputation: 0
SAMBA configuration


hi,

i have posted this problem in over 10 different forums but no reply yet received. plz help me here. if i am not clear with what my problem is plz reply so that i can explain what else details are required.

my pc is connected in a LAN

recently i have started using Linux. i have configured my samba so that i can share my files.

My PC ip address is 10.100.96.44.
here is few lines from my samba conf file.

workgroup = MYGROUP
netbios name = MYPCNAME

i am able to access other PC's which are in my subnet (10.100.96.*) with the NETBIOS name but to access other PC's i should use their ip address (eg. 10.100.97.*)

Also PC's in my subnet can access my system with my NETBIOS name (MYPCNAME) but systems in other subnet can't.

when i was using windows i was able to access all PC's (regradless of which subnet they are in) with their netbios names.

our lan uses Dynamic IP addressing.

please can someone help me with what my smb.conf file should contain to access all PC's with their netbios names?

thank u

PS: when i enter ipconfig in windows i get the following details.
"
Windows IP Configuration

Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix :
IP Address : 10.100.96.44
Subnet MAsk : 255.255.255.0
Default Gateway : 10.100.96.4
"
may be this would help in determining what my smb.conf should contain

- Fedora core 4 (64 bit)
- AMD 64
 
Old 11-06-2005, 11:06 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
To communicate outside your local network or into another workgoup, you need a WINS server to resolve names to ip numbers.

Also, samba doesn't find/browse..
The smbclient & nmblookup programmes do this.

You can setup samba to be a wins server with the "wins support = yes" option,
then tell the dhcp server to supply a wins address to everybody.
 
Old 11-06-2005, 11:29 AM   #3
nawin_g
LQ Newbie
 
Registered: Nov 2005
Posts: 19

Original Poster
Rep: Reputation: 0
i have already enabled the wins support.

i am posting my smb.conf file here. please suggest necessary changes.

# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2005/10/31 22:05:16

# Global parameters
[global]
workgroup = DA-IICT
netbios name = STEALTH
server string = AI inside I outside
log file = /var/log/samba/%m.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
hosts allow = 10.100.95. 10.100.96. 127.
dns proxy = No
wins support = yes
name resolve order = wins lmhosts hosts bcast
ldap ssl = no
winbind uid = 16777216-33554431
winbind gid = 16777216-33554431
cups options = raw

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
 
Old 11-06-2005, 11:37 AM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Just do the dhcp server additions to tell everyone to use the wins server..
 
Old 11-06-2005, 05:38 PM   #5
nawin_g
LQ Newbie
 
Registered: Nov 2005
Posts: 19

Original Poster
Rep: Reputation: 0
i am a newbie to linux so can you please tell me how to add that dhcp thing
 
Old 11-06-2005, 11:14 PM   #6
randyding
Member
 
Registered: May 2004
Posts: 552

Rep: Reputation: 31
Below is an example dhcpd (ISC) configuration file,
the line "option netbios-name-servers 192.168.77.1;"
is the one for WINS.

Code:
authoritative;
ddns-update-style ad-hoc;

default-lease-time 14400;
max-lease-time 172800;

option subnet-mask 255.255.255.0;
option broadcast-address 192.168.77.255;
option routers 192.168.77.1;
option domain-name-servers 192.168.77.1;
option netbios-name-servers 192.168.77.1;
option domain-name "foo.com";

subnet 192.168.77.0 netmask 255.255.255.0 {
    range 192.168.77.128 192.168.77.254;
}

Last edited by randyding; 11-06-2005 at 11:17 PM.
 
Old 11-07-2005, 06:04 AM   #7
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
That would depend on whether the network's dhcp server is Linux or a M$ variety..

Better to ask the network admin to make the changes..
 
Old 11-07-2005, 09:47 AM   #8
nawin_g
LQ Newbie
 
Registered: Nov 2005
Posts: 19

Original Poster
Rep: Reputation: 0
thnk u. i am on to it. will reply as soon as it gets over.

thanks again 4 ur help
 
Old 11-08-2005, 11:35 AM   #9
netguy2000
Member
 
Registered: Oct 2003
Location: Karachi, PAKISTAN
Distribution: Redhat, Fedora, Open BSD, FreeBSD, SlackWare
Posts: 115

Rep: Reputation: 15
what happen is your problem rectify???????

Reply. plzzz

Rizwan.
 
Old 11-08-2005, 03:23 PM   #10
nawin_g
LQ Newbie
 
Registered: Nov 2005
Posts: 19

Original Poster
Rep: Reputation: 0
hi rizwan

i kinda didnt try it out yet.
i learnt from my administrator that my sytem should act as a WINS server and others should connect to my PC while i forward my requests to the college WINS server.

so i didnt try out the dhcp thing.
 
  


Reply



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
Samba Configuration halod Linux - Networking 1 09-02-2005 07:46 AM
Samba Configuration EzehM Linux - Networking 6 06-24-2004 02:46 PM
I need some Samba configuration help... GetCool Linux - Networking 2 11-17-2003 05:36 PM
Samba configuration littlegreenman Linux - Networking 14 09-10-2003 11:55 AM
SAMBA Configuration lee foster Linux - Newbie 4 10-23-2002 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:26 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
Open Source Consulting | Domain Registration