share by FishX
1)Install Samba Server & add user
sudo apt-get install samba samba-common-bin
sudo smbpasswd -a bananapi
thne input the password for twice 2)Modify the config file
service samba stop
nano /etc/samba/smb.conf
Press Ctrl+K to delete all lines,then paste below lines to the config file
[global]
workgroup = WORKGROUP
#usershare allow guests = yes
#security=share
security=user
follow symlinks = yes
wide links = no
unix extensions = no
lock directory = /var/cache/samba
[BananaPi]
browsable = yes
read only = no
#guest ok = yes
valid users = bananapi
path = /home/bananapi
[devices]
browsable = yes
read only = no
#guest ok = yes
valid users = bananapi
path = /media
force user = root
3)Restart samba server
service samba start
4)test press win+r under windows then type this line to test the samba server
\\Your bnnpi's ip