Ubuntu SMB/CIFS Server

I was in the process of build a NAS device and needed to enable the SMB sharing so that Windows users could drop files onto the device. I needed to figure out a way to get it working on my ubuntu 8.10 server here are my notes from the setup.
Install the service
sudo apt-get install samba

SMB Configuration
We now have to modify the SMB settings from the command line
nano /etc/samba/smb.conf

The file out of the box has almost everything turned off. I left the default information alone and added the following part to (2) sections:
Under the Global Settings area [global] add the following:
#Modified by Arthur Gressick
  security = user
  encrypt password = true
  map to guest = bad user
  guest account = nobody
  create mask = 0644
  directory mask = 0755
## done

Now under Share Definitions Paste the following
#Modified by Arthur Gressick
  comment = NAS Share
  path = /mnt/right_raid/smb
  read only = no
  browseable = yes
## done

Setting up SMB User
It is best practices to use an existing user already on the linux server. I setup a user already for rsync called rbackup (remote backup). So for this example below I am going to map the account to the existing rbackup account.
Run this from the command line
smbpasswd -a rbackup

Connecting from Windows
From Windows 2000/2003 go to Start, Run, then type the following


Popular posts from this blog

Console over SSH (ONTAP)

Brocade Zone Setup

OpenSolaris ZFS Setup