1

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!

asked Nov 28, 2016 at 21:30
9
  • I've seen this tutorial link suggested on many questions, so I've done it from scrap, still no results. Commented Nov 28, 2016 at 23:27
  • This started to happen to me on Windows 10 recently. It worked fine for years. It must some new "no password" default policy in the registry. I have not worked it out yet. Commented Nov 29, 2016 at 8:11
  • It's good to know someone else have bumbed into this. I'll try to fiddle with it, maybe find something. Commented Nov 29, 2016 at 8:54
  • I think the username needs to be something like <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. Commented Nov 30, 2016 at 8:18
  • So I've tried for some time now, and still no results, managed to take ownership of the external drive to the pi user, so now no root involved. But still, as I log in, I still get the access denied response. This means, that the user/password is correct. I have no idea what could deny my access anymore... samba accepts my login, and the drive is owned by pi. Commented Nov 30, 2016 at 20:39

2 Answers 2

1

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.

answered Dec 1, 2016 at 23:31
0
0

Changing

valid users = %s

to

; valid users = %s

further up the smb.conf file finally worked.

MatsK
2,8833 gold badges18 silver badges22 bronze badges
answered Jan 21 at 10:16

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.