LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   SAMBA configuration (https://www.linuxquestions.org/questions/linux-networking-3/samba-configuration-380141/)

nawin_g 11-05-2005 05:33 AM

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

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

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 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;
}


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

Rizwan.

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.