1[root]2path = /
3browseable = yes
4guest ok = yes
5guest only = yes
6read only = no
7force user = root
8force create mode = 0777
9force directory mode = 0777
10
Now, set a username and password for the Samba share. This command has to be run with root privilege.
1$ sudo smbpasswd -a pi
it will ask you to set a password. set the same as pi password for convinience and from Windows you can now access //<rpi hostname>/root and read/write the whole linux filesystem
After you are done
run to restart the Samba service
sudo systemctl restart smbd
to test that the samba is up
run this
sudo smbclient //raspberrypi/root
and then click l
this should give you the list of the files and directories in the root of the Raspberry
-------
configure ssh key based access from windows to rpi
type c:\users\boris\.ssh\id_rsa.pub | ssh pi@rpi "cat >> .ssh/authorized_keys"