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 07-17-2006, 10:48 AM   #1
cdf22728
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core
Posts: 20

Rep: Reputation: 0
SAMBA and Windows Router.


I am running a "windows" router, which is a UPnP device under windows. I am able to connect to the internet which means that my connection to the router is OK, but I am unable to browse any of the computers in my house. Everyone shares one Printer, and I am the only one with Linux (because I'm cool like that), but I am unable to browse the network. I setup samba to use our in-house workgroup and such, but still no luck. Any advice?

Note: I am using Fedora Core 4, and the latest version of Samba.
 
Old 07-17-2006, 10:59 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,209

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
Is the router running DHCP? If yes, and you want to run samba, you might find it easier to set up static IP addresses on each box. Then you can set up a 'hosts' file on each box.

Once done, you should be able to ping each box. Get that working first.

Once you have IP conectivity, then you can get samba working. It would help if you posted your smb.conf file. Without that, we are just guessing.
 
Old 07-17-2006, 10:04 PM   #3
cdf22728
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core
Posts: 20

Original Poster
Rep: Reputation: 0
Here is my smb.conf file

# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#
#======================= Global Settings =====================================
[global]

# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = foster

# server string is the equivalent of the NT Description field
server string = Samba Server

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
; hosts allow = 192.168.1. 192.168.2. 127.

# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
printcap name = /etc/printcap

# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx
; printing = cups

# This option tells cups that the data has already been rasterized
cups options = raw

# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
; guest account = pcguest

# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/%m.log
# all log information in one file
# log file = /var/log/samba/log.smbd

# Put a capping on the size of the log files (in Kb).
max log size = 50

# Security mode. Most people will want user level security. See
# security_level.txt for details.
; security = user
# Use password server option only with security = server
; password server = <NT-Server-Name>

# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
; password level = 8
; username level = 8

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
; encrypt passwords = yes
; smb passwd file = /etc/samba/smbpasswd

# The following are needed to allow password changing from Windows to
# update the Linux system password also.
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
# NOTE2: You do NOT need these to allow workstations to change only
# the encrypted SMB passwords. They allow the Unix password
# to be kept in sync with the SMB password.
; unix password sync = Yes
; passwd program = /usr/bin/passwd %u
; passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*

# Unix users can map to different SMB User names
; username map = /etc/samba/smbusers

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
; include = /etc/samba/smb.conf.%m

# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192

# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
; interfaces = 192.168.12.2/24 192.168.13.2/24

# Configure remote browse list synchronisation here
# request announcement to, or browse list sync from:
# a specific host or from / to a whole subnet (see below)
; remote browse sync = 192.168.3.25 192.168.5.255
# Cause this host to announce itself to local subnets here
; remote announce = 192.168.1.255 192.168.2.44

# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
; local master = no

# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
; os level = 33

# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
; domain master = yes

# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
; preferred master = yes

# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations.
; domain logons = yes

# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
; logon script = %m.bat
# run a specific logon batch file per username
; logon script = %U.bat

# Where to store roving profiles (only for Win95 and WinNT)
# %L substitutes for this servers netbios name, %U is username
# You must uncomment the [Profiles] share below
; logon path = \\%L\Profiles\%U

# All NetBIOS names must be resolved to IP Addresses
# 'Name Resolve Order' allows the named resolution mechanism to be specified
# the default order is "host lmhosts wins bcast". "host" means use the unix
# system gethostbyname() function call that will use either /etc/hosts OR
# DNS or NIS depending on the settings of /etc/host.config, /etc/nsswitch.conf
# and the /etc/resolv.conf file. "host" therefore is system configuration
# dependant. This parameter is most often of use to prevent DNS lookups
# in order to resolve NetBIOS names to IP Addresses. Use with care!
# The example below excludes use of name resolution for machines that are NOT
# on the local network segment
# - OR - are not deliberately to be known via lmhosts or via WINS.
; name resolve order = wins lmhosts bcast

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
; wins support = yes

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
; wins server = w.x.y.z

# WINS Proxy - Tells Samba to answer name resolution queries on
# behalf of a non WINS capable client, for this to work there must be
# at least one WINS Server on the network. The default is NO.
; wins proxy = yes

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
dns proxy = no
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
restrict anonymous = no
domain master = no
preferred master = no
max protocol = NT
ldap ssl = No
server signing = Auto
security = share
; encrypt passwords = yes
; guest ok = no
; guest account = nobody
; encrypt passwords = yes
; guest ok = no
; guest account = nobody
; encrypt passwords = yes
; guest ok = no
; guest account = nobody
; security = user
; encrypt passwords = yes
; guest ok = no
; guest account = nobody
; security = user
; encrypt passwords = yes
; guest ok = no
; guest account = nobody
; security = user
; encrypt passwords = yes
; guest ok = no
; guest account = nobody

[homes]
comment = Home Directories
browseable = no
writeable = yes

# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
; path = /home/netlogon
; guest ok = yes
; writable = no
; share modes = no


# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;[Profiles]
; path = /home/profiles
; browseable = no
; guest ok = yes


# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /var/spool/samba/
browseable = no
# Set public = yes to allow user 'guest account' to print
; guest ok = no
printable = yes
guest ok = yes

[Screenshots]
path = /home/Charles/Screenshots
writeable = yes
browseable = yes
guest ok = yes
 
Old 07-17-2006, 10:05 PM   #4
cdf22728
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core
Posts: 20

Original Poster
Rep: Reputation: 0
Also:

The router is running DHCP, but I don't want static address.
 
Old 07-18-2006, 10:38 AM   #5
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,209

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
Firstly, just a comment on your smb.conf file.

Quote:
Any line beginning with a semicolon (``;'') or a hash (``#'') character is ignored
(Taken form man smb.conf)

The file is very difficult to follow, since it is full of lines doing nothing. Best thing to do is backup this file, open a copy in an editor and strip out the comments, then you can see more what is really being configured. You are using a lot of defaults, such as security, I'm not sure what the default is.

Second comment, DHCP with Samba can be done, but not without a lot of difficulty. I know, I tried. The mechanism for resolving IP addresses with windoze code is complex. I think you need to set up a Domain Name Server. That is a kettle of fish for someone with lots of training. I found out it will work to a point. You can find the IP addresses and update your 'hosts' files on each machine. But as soon as you boot a box, it gets a different IP address, you can no longer connect to it, until you update the 'hosts' files. Constant maintenance, and a real pain.

I left my DHCP server running, so if a new box comes to the network, it gets online right away. The boxes that stay here all the time I set fixed IP addresses. I set a range in my router for dynamic IP addresses. I set fixed IP's for the fixed boxes within the range of the sub-net, but out side of the range for dynamic IP. Works great, set up the 'hosts' file on the fixed boxes, and you are done.

Next, there are two parts of networking with windbloze, server and client. You can do one with out the other. The smb.conf file configures the server, your linux box so it can share files and printers. The client part is much simpler.

You said you couldn't see the other boxes on the network. Have you tried opening up Konqueror, and in the address bar type 'smb:/networkname' ( without quotes )? That should list the machines in your network. If you get nothing then, you need to find out if you have ip connectivity with them. The commands to find the IP addresses: for linux - ' /sbin/ifconfig'
for WinXP 'ipconfig' and older versions like W98 'winipcfg' . No quotes with any command. Each should return the IP address of each box.

I think you would benefit from doing a little reading. Here is a link to information on configuring Samba server.

http://us1.samba.org/samba/docs/using_samba/toc.html

Here is a link I used to get my server running, the way I wanted it.

http://www.dalantech.com/fusionbb/sh...php?tid/51627/

There are others you can find by googling. This is not a trivial topic, with one simple answer, so be prepared to dig in and do some learning.

Hope this helps.
 
Old 07-18-2006, 12:44 PM   #6
cdf22728
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core
Posts: 20

Original Poster
Rep: Reputation: 0
I disabled the Linux Firewall and I can now "see" the other computers and open them up. I can't see the file-shares. The M$ Box can see and view my shares, but the Linux system can't. Which means I have no access to the printer.
 
  


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
samba acces router ruben0076 Linux - Networking 2 01-22-2005 07:14 AM
Samba 3.0.6 - How to mount Samba Shares from Windows 2003? kp1 Linux - Software 2 09-10-2004 06:03 PM
not seeing samba shares across router jrwizzard Linux - Software 1 09-03-2004 10:14 AM
newbie samba network w/ router degraffenried13 Linux - Networking 7 06-27-2004 09:28 AM
samba through a router Zaius Linux - Newbie 2 01-14-2004 03:17 PM

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

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