RaspberryPi NAS
10 Mar 2014# sudo apt-get install samba samba-common-bin $ sudo smbpasswd -a pi $ 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 $ sudo vim /etc/samba/smb.conf
[public] comment = Public Storage path = /home/shares/public valid users = @users force group = users create mask = 0660 directory mask = 0771 read only = no
$ sudo vim /etc/fstab
/dev/sdxx /home/shares/public/disk1 auto gid=pi,uid=pi,noatime 0 0
$ sudo reboot