sudo apt-get install samba
. Create an user, howard.
sudo useradd howard
. Create a samba user, howard, and set the password.
sudo smbpasswd -a howard
. Configure the shared folder permission info in samba config file.
sudo vi /etc/samba/smb.conf
Add following info to the end of smb.conf file
[src]
path = /home/howard/src/
browseable = yes
read only = no
writeable = yes
create mask = 0755
directory mask = 0755
valid users = howard
. Restart the samba service and it's now ready!
sudo service smbd restart
[To connect the samba server from a Mac OS X]
Go to finder and Cmd+K, enter smb://IPOfUbuntu/src