It took me some google search to found this good article:
When I tried out I missed some steps.
First I connected to my Pi with PUTTY
After that I created a new User who will be granted for accessing the share
sudo adduser NAME –no-create-home –force-badname –disabled-login
Where NAME has to be replaced with any name you prefer. (I used Patrizio 😉
After successfully created the User, I followed the instruction on the article above.
sudo apt-get install samba
With this command I installed the samba server to share to windows.
After successfully installed the samba server, I set the samba user with (replace NAME with you choosen one)
sudo smbpasswd -a NAME
You can choose the same password like adding the user before.
I made a Folder inside the home folder
and set the permissions with
chmod -R 777 Share
After that, I had to change the samba server’s config file with
sudo nano /etc/samba/smb.conf
Added the following lines at the end of the file
path = /home/Share
avaible = yes
valid users = NAME #NAME of the created user
read only = no
browsable = yes
public = yes
writable = yes
Obviously you can change the settings to fulfill your needs.
Last but not least I restarted the samba server with
sudo service smbd restart
When I accessed the share with my windows machine, I got this result:
Now I can write files to the Raspberry Pi from my Windows machine 🙂