-   Linux - Networking (
-   -   SAMBA configuration (

nawin_g 11-05-2005 05:33 AM

SAMBA configuration

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
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 :
Subnet MAsk :
Default Gateway :
may be this would help in determining what my smb.conf should contain

- Fedora core 4 (64 bit)
- AMD 64

peter_robb 11-06-2005 11:06 AM

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.

nawin_g 11-06-2005 11:29 AM

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 (
# Date: 2005/10/31 22:05:16

# Global parameters
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

comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

peter_robb 11-06-2005 11:37 AM

Just do the dhcp server additions to tell everyone to use the wins server..

nawin_g 11-06-2005 05:38 PM

i am a newbie to linux so can you please tell me how to add that dhcp thing

randyding 11-06-2005 11:14 PM

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


ddns-update-style ad-hoc;

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

option subnet-mask;
option broadcast-address;
option routers;
option domain-name-servers;
option netbios-name-servers;
option domain-name "";

subnet netmask {

peter_robb 11-07-2005 06:04 AM

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..

nawin_g 11-07-2005 09:47 AM

thnk u. i am on to it. will reply as soon as it gets over.

thanks again 4 ur help

netguy2000 11-08-2005 11:35 AM

what happen is your problem rectify???????

Reply. plzzz


nawin_g 11-08-2005 03:23 PM

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.

All times are GMT -5. The time now is 10:42 AM.