I'm trying to configure my PI to use as a fileserver, but after reading every tutorial on this from google, I still can not figure out what is wring with my settings.
/media/pi/USBHDD permissions:
pi@raspberrypi:~ $ ls -l /media/pi/USBHDD
total 0
drwxrwxrwx 1 root root 0 Nov 28 18:45 MediaShare
drwxrwxrwx 1 root root 0 May 11 2016 System Volume Information
Samba config:
[MediaShare]
path = /media/pi/USBHDD/MediaShare
writeable = yes
only guest = yes
create mask = 0777
directory mask = 0777
browseable = yes
public = yes
What I get when I try to access it:
I'm a beginner unix user. I'm going bald over this, please help!
2 Answers 2
Finally I managed to solve this. I messed up the config, further down below my share it contained a line "valid users = %s", so of course no user could access the share.
What finally worked for me:
[global]
security = user
usershare allow guests = yes
[MediaShare]
path = /media/USBHDD/MediaShare
Everything else is the default. This way I can log in with users added with smbpasswd.
The important part is making sure, that you declare your share before or after the home share. My main problem was writing inside the home share, so some settings stuck with me.
Changing
valid users = %s
to
; valid users = %s
further up the smb.conf
file finally worked.
<something>/Guest
and blank password. I saw this pop up on another Win10 machine yesterday and it worked. I am looking for more details on this now.