Enabling samba share on RPi 2 – Ubuntu Mate posed some challenges.
Below is what worked for me.
Install Samba with UI
sudo apt-get install samba samba-common python-glade2 system-config-samba
Edit samba config file
sudo nano /etc/samba/smb.conf
Ensure domain is not set
domain logons = yes
domain master = yes
Add following lines to global section
[global]
usershare owner only = false
unix extensions = no
follow symlinks = yes
wide links = yes
ntlm auth = no
lanman auth = no
client ntlmv2 auth = yes
Defined a share as
[]
path =
browsable = yes
writable = yes
force user =
valid users = , ...
force create mode = 0770
force directory mode = 0770
One can also move force user = to the top of config file to force user access for all shares
On windows side
- Use NET USE command to view shares
- If a share was accessed by other user and need to be freed up use net use /delete \\server\sharename