Chris Nizzardini, Salt Lake City Utah, Web Developer Specializing in LAMP+Ajax Since 2006

My Blog

Here is my awesome blog.

setting up samba on debian 3.1

I’ve decided to use my linux server as backup file storage. It has two large 160 GB drives sitting in a mirrored volume so my data is safe :) Here is a quick dirty how to on samba:

apt-get install samba

Once downloaded debian’s package management takes your through some configuration options.

1. Enter your workgroup name
2. Yes – use password encryption
3. No – Modify smb.conf to use WINS settings from DHCP
4. Select daemons
5. Yes – create samba password database

To configure the conf file vi /etc/samba/smb.conf and use the following parameters to create a basic share under the Share definitions section:


[share name here]
comment = [brief description here]
browseable = yes
writable = yes
path = [absolute path to directory here]
create mask = 0755
directory mask = 0700
guest ok = no

By default your home directory will show up when you connect in addition to any other directory shares you define. To connect you open a run box and type \\[server name] or you can create mapped network drive which is probably the best idea if you’re going to be using it a lot like me.

Leave a Reply