how to set up samba sharing folder 1. sudo apt-get install samba 2. configure in /etc/samba/smb.conf a) sudo nano /etc/samba/smb.conf b) [global] or [Authentication] security = user c) create the sharing folder (<=add to the end) [share_other] comment = Ubuntu File Server Share path = /srv/samba/share_other browsable = yes guest ok = yes read only = no create mask = 0755 [share_lei] path = /home/lei browseable = yes guest ok = yes read only = no create mask = 0755 [share_www] path = /var/www browseable = yes guest ok = yes read only = no create mask = 0755 3. create the folder if not exist sudo mkdir -p /srv/samba/share_other (<= -p: create the entire directory tree if it doesn't exist) 4. change the owner of the folder if you are not the owner of it * sudo chown nobody.nogroup /srv/samba/share_other sudo chown lei.lei /srv/samba/share_other sudo chown lei.lei /var/www 5. sudo /etc/init.d/samba restart