Samba – Share Linux Folder to Windows

I want to share a folder in my Ubuntu virtual machine to my Windows host. That folder contains the Rails applications such that i can edit them on the Windows host.

1. Install the Samba server

  • sudo apt-get install samba


 

2. Add the following settings in /etc/samba/smb.conf

[share]
    comment = Ubuntu File Server Share
    path = /home/ykyuen/Documents
    browsable = yes
    guest ok = no
    read only = no
    create mask = 0755

 

3. Add the Samba user account by the following command

  • pdbedit -a -u <username>

 

4. Now you should be able to mount the folder in Windows Explorer.

Done =)

Reference:

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.