I got a raspberry pi 2 and an old hdd, so i wanted to create a samba share for this old hdd. I mounted my hdd with ntfs-3g to /media/usb which works fine.
I added this to my smb.conf file:
[smb]
path = /media/usb
available = yes
read only = no
browseable = yes
public = yes
writable = yes
I set the permission with sudo chmod 777 -R /media/usb
and restarted the samba service.
Next i tried to access my smb from windows, but i couldn't. It said: "no access to xxx.xxx.x.xxx/smb" and something like ask your network administrator for permission(translated from dutch). Checking my permisions with ls -ld /media/usb
I got drwxrwx---
I tried other configs but none of them seemed to work. At this point I created a second share to my smb.conf with the same config, but with /home as the path. Now this share works, but my first share still doesn't, but it has the same config.
I don't understand what's wrong and I can't find a solution. Can someone help me. Has this something to do with the hdd mount?