Specifies the folder that contains the files to be shared
The text Pi Shared FOlder is the text that is displayed as Comments in shares detail view The following table explains the meaning of each entry in the share definition. You need to restart samba for the changed to take $ sudo /etc/init.d/samba restart These lines define the behaviour of the shared folder so you can call them share definition. In this example we will create a folder and give read, write, execute permissions to owner, group and other $ mkdir $ chmod 777 /home/pi/sharedĮdit the /etc/samba/smb.conf file and add the following lines. Create shared folderĬreate the folder that you want to share and setup appropriate permission. Replace MYWORKGROUP with the name of your workgroup. You can also enable your Raspberry Pi as a WINS server by changing the entry wins support to yes On a system running Windows 10 you can find this on Settings → System → About To find out the workgroup name on Windows 7 PC go to Control Panel → System.
To install samba on Rasberry Pi simply run the following $ sudo apt $ sudo apt-get install sambaĮdit the samba configuration file $ sudo nano /etc/samba/smb.confĬhange the workgroup name to the name of your workgroup. Samba is a free software that implements SMB/CIFS protocol to provide shared access to files and printers between Windows, Unix, Linux and OS X systems.
You can create shared folders in Raspberry Pi and make them available to other devices on Windows network using a software called Samba. Instead of using USB memory sticks to copy the files across a much easier and safer option is to create a shared folder that can be accessed by both Windows and Raspbian. You may often need to copy files such as music, photos or videos between Raspberry Pi and your home PC running Windows operating system.