[Home] [Credit Search] [Category Browser] [Staff Roll Call] | The LINUX.COM Article Archive |
Originally Published: Thursday, 14 June 2001 | Author: Josh Boudreau |
Published to: learn_articles_firststep/General | Page: 2/2 - [Printable] |
Getting Started With Networking for Linux Part 3; Sharing File Systems
Josh Boudreau returns to Linux.com Learn with the third part of his popular introduction to networking series. In part three of Getting Started with Networking for Linux Josh takes a look at sharing file systems between Windows and Linux boxen on the same network, using technologies like Samba and
smbmount . |
<< Page 2 of 2 | |
Installing SambaIf you have both Linux and Microsoft Windows computers on the same network and you want to share files between them, you will need to install the Samba software package. Most Linux distributions ship with a pre-compiled version of Samba but if yours does not the source code for Samba can be downloaded from www.samba.com. Samba can be compiled and installed with the following commands once you have downloaded the source code.
By default this will install the Samba files in
Samba comes with a Web Configuration utility called
You also have to add a line to
Please note that the path on that line might be different than the one
on your system (especially if you didn't install Samba in the default
directory) so change it according to your system. Once both these files
are changed inetd must be re-started: you can do this by typing
If you're having difficulties installing Samba, the good folks at O'reilly provide a free version of the
book Using
Samba which is distributed with the Samba source code and is found
in Samba Configuration
Before starting up the Samba daemons we still need to build our
configuration file for Samba. If you set up swat like I explained in the
previous section you can connect to the swat configuration utility with
your web browser by entering
[global]
This simple configuration file configures the netbios name of our
machine and tells Samba which Microsoft Workgroup our computer is a part
of. Both the
To add more shared directories to your Samba server simply copy the
Starting Samba and Adding UsersOnce you have the configuration done you can start Samba by typing the following at your shell prompt:
If your configuration file is valid these two daemons should sit in the
background and listen to network requests made of your Samba server. To
let users have access to your server they must be present in the
Adding users to Samba can be done with the
After typing this command you should be prompted to provide a password for the new user. Remember that this username and password is not the same as the one used to log on your system. The username should be the one the user uses on his Microsoft Windows computer. Mounting Microsoft Windows Shares
The only thing left to see is how to mount Microsoft Windows shares on
your Linux computer. During the installation process we passed
This command would mount the directory at
For those of you using X11, there's a graphical front-end to smbmount called LinNeighborhood that looks similar to Network Neighborhood under Microsoft Windows. It lets you browse Microsoft networks and mount file systems. LinNeighborhood can be downloaded at www.bnro.de/~schmidjo/ and is definitely worth checking out. Additional ResourcesFor additional information visit the Samba Web Site and be sure to take advantage of the great book called Using Samba that O'reilly has made available for free. You might also wish to read the previous articles from this series which are Getting Started With Networking for Linux and Getting Started With Networking for Linux; Configuring DNS for your network with BIND.
| |
<< Page 2 of 2 |