[brlug-general] Samba and router

john beamon jbeamon at cox.net
Wed May 29 10:10:33 CDT 2002


Assume that your router is your IP address server (DHCP server) and that 
your Linux box is your file server.  You *almost* sound skeptical about 
having more than one "server" on your network, but that's not a problem.  
Technically, any Linux box running Samba or any Windows box running File & 
Print Sharing is technically a "server".  Any other box that maps a drive 
or a printer on another box is acting as a "client" by doing so.

I've attached an smb.conf.simple that's a good basic start.  You'll need
to tweak a few names and perhaps and IP address, and rename it to
"smb.conf" in the right directory for your installation.  Other than that,
it serves the "homes" share that Windows boxes look for on an NT home
directory server, and it serves a public file share that is publicly
visible and writeable by a certain group of users.  Try it out first.  
You'll have to set the Workgroup line in this file and in the Network 
Identification of your Windows boxes.  Then restart samba with the init 
script provided.  You should be able to browse Network Neighborhood and 
see your server, containing a share called "pub" and a share called 
(your login name) and any attached printers.  I s'pose this does require 
that your login on the windows box be the same as your login on the Unix 
box...  From here, you can map network drives or whatever.

I hope it helps.

-- 
-j

John Beamon

On Wed, 29 May 2002, Bart G. Denys wrote:

> Date: Wed, 29 May 2002 07:17:57 -0500
> From: Bart G. Denys <denysfamily at charter.net>
> Reply-To: General at brlug.net
> To: General at brlug.net
> Subject: RE: [brlug-general] Samba and router
> 
> Glad I'm not the only one :-)
> 
> Share files...Seriously, the server issue is where my confusion started. I
> don't comprehend who is serving in my configuration. Everything I read
> assumes that the linux box is the "server" and everything else the "client".
> How does this work if my router is at the center of my little network and
> also acts as the IP address server ?
> 
> Bart
> 
> -----Original Message-----
> From: General-admin at brlug.net [mailto:General-admin at brlug.net]On Behalf
> Of Jeff Crosby
> Sent: Wednesday, May 29, 2002 6:59 AM
> To: General at brlug.net
> Subject: Re: [brlug-general] Samba and router
> 
> 
> I'm confused too.  Exactly what is it you're trying to do?  Use the linux
> box as a samba server or just share files among all the computers?
> 
> Jeff
> ----- Original Message -----
> From: "Bart G. Denys" <denysfamily at charter.net>
> To: <General at brlug.net>
> Sent: Wednesday, May 29, 2002 6:41 AM
> Subject: [brlug-general] Samba and router
> 
> 
> > I have a Linksys router/wireless connected to a cable modem at home with 3
> > Windows98 boxes, a Vaio laptop with wireless Linksys Card and a Mac
> > powerbook G4 with airport card. Currently they all talk to each other.
> > I am running Red Hat 7.3 on a 4th computer and am confused about where to
> > start.
> > I read all I could about Samba but really, when you don't know where to
> > start it only gets more confusing. I tried to go the swat route, and
> > although the interface is nice, it doesn't help me much with how and what
> I
> > am supposed to do.
> >
> > Bart
> >
> >
> > _______________________________________________
> > General mailing list
> > General at brlug.net
> > http://brlug.net/mailman/listinfo/general_brlug.net
> 
> 
> _______________________________________________
> General mailing list
> General at brlug.net
> http://brlug.net/mailman/listinfo/general_brlug.net
> 
> 
> _______________________________________________
> General mailing list
> General at brlug.net
> http://brlug.net/mailman/listinfo/general_brlug.net
> 
-------------- next part --------------
[global]

workgroup = MyLan		# must be everyone's "Workgroup"
server string = MyServer	# must be a unique name on your LAN
hosts allow = 192.168.0. 127.	# defaults to the IP networks on your server

printcap name = /etc/printcap	# loads up printer you have attached
load printers = yes		# to your Samba server
printing = lprng		# your system's print serving package

guest account = ftp		# a system account for anonymous access

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

#============================ Share Definitions ==============================
[homes]			# "homes" is a default Windows share that serves
   comment = %U		# your username's home directory on an NT server.
   browseable = no	# Samba has adopted it for simple Windows
   writable = yes	# compatibility. non-browseable means that all
			# users' shares will NOT just show up in Net 'Hood

[pub]
   comment = file server
   path = /var/ftp	# a public share, writeable by everyone in the
   browseable = yes	# system group "users", provided you have correct
   read only = no	# dir and file permissions
   public = yes
   write list = @users


More information about the General mailing list