This are the instructions from the Raspberry PI support site
http://elinux.org/R-Pi_NAS
start by saving the default file
Code:
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.old
edit the Samba configuration file
Code:
sudo nano /etc/samba/smb.conf
Search for the section marked ##### Authentication #####
Change the text
to
Search for the section starting [homes]
In the [homes] section, change from
to
On another terminal create a directory to mount your external
Code:
Create a directory to store public files
sudo mkdir /home/shares
sudo mkdir /home/shares/public
sudo chown -R root:users /home/shares/public
sudo chmod -R ug=rwx,o=rx /home/shares/public
Mount your external Hard drive to that directory
Code:
sudo mount /dev/sdxx /home/shares/public/disk1
At the end of the SAMBA configuration file add the lines
Code:
[public]
comment = Public Storage
path = /home/shares/public
valid users = @users
force group = users
create mask = 0660
directory mask = 0771
read only = no
Save the edited file
Code:
Press Control-X
Press y
Press [enter]
on the other terminal add your samba user
Code:
sudo smbpasswd -a youruser
type the password twice
Re start SAMBA
Code:
sudo /etc/init.d/samba restart
From your samba client open up a file browser and browse the network drives
your user will be the user in your samba client and the password you just set.
I just did these steps and it is working for me the link I posted on the beginning of this post has more screen shots and more explanations on the topic
Good luck to you.