This may be documented elsewhere, but I didn't find it all together.
The first thing I did was spend some time reading the Samba docs. I highly recommend this.
But, if you're a bit ADD like myself these tips could help avoid hours/days/weeks trying to
figure it out by T&E.
I'm not going to go into how to install the programs on your "server", as the docs are pretty
good at going through that AND it's not difficult to get them running. The difficulty comes in
getting them configured. sigh
(1) I installed the Samba server and daemon on my "server" box. When this is done, make
sure BOTH smbd and nmbd are in your process list (ps ax).
(2) Install SWAT on this same system and make sure it is running, also.
(3) When you're sure smbd and nmbd are running on your "server", go to a box with a GUI (I
didn't try this on the same box, so I can't comment on how it works) and a web browser - ON
THE SAME NETWORK. In the address bar, put in the IP address of the "server" and the
Samba port number (901) as follows:
Then you should be able to log in as root and make the changes necessary to the Samba
configuration (mostly in General and Shares) and commit them
. Once the changes are
commited (written to the smb.conf file) you need to go to the Status
section and restart smbd
Use of SWAT is highly recommended - once I got this working, the rest of configuring
the server fell into place (and the guess work vanished).
(4) When you're pretty sure you have your configuration set on your server, test your setup
with a Windows box. (Start>Run, '//server' should list the shares available in the drop list) If
you don't have a Windows box on your network, you really don't need
Samba - you can
use NFS. Once you can mount the shares in Windows, make sure you have samba
installed on your Linux client/remote computer. I don't know
for sure if they're all necessary for mounting a Samba share, but I did end up with all three on
my box and I believe they're all helpful.
- needed to even consider accessing a system with SMB shares
- without this, you'll never get anything to mount
- this was a great troubleshooting tool - it allowed me to see that the
shares were there, accessible, and focus on my client-side configuration instead of guessing
that my server was good-to-go
(5) For the sake of all that keeps us sane - get the syntax for mounting the shares correct.
Once I figured out what I was doing incorrect, I could have kicked myself for blowing the
syntax for weeks.
mount -t smb //server/share /mount/point -o username=xxxxxx,password=xxxxxx
won't work - it has to be username
This is not, by any means, an exhaustive HOW-TO on Samba - it's meant to show (1) the
stumbling blocks I ran into and (2) how to avoid the pain and suffering I went through.