I am attempting to create a local file server at home. I am using Raspbian stretch desktop 14.4(Just did a update) on a raspberry pi 3 b+. I want to use a external HHD to act as the storage unit. I have created a file with my name that is owned by the user and group Kevin. As soon as I remove "Guest ok = yes" and add "valid users = kevin" windows tells me I do not have permission to access it and wont even prompt me to give my credentials. I then made a share in my home folder for user PI. With this one it asks for my credentials but when I enter the correct password and username that I setup for samba it once again says I don't have permission. I am honestly at a loss for words never have I had this much trouble with samba on my VM.
I looked threw other posts for a solution but none fit the bill. I made sure all the folders had execute permissions for anyone, I tried doing chmod 777 /media/pi/storage/kevin, tried nobody as owner, added security = user and wins support = yes in [global].
tl;dr: With the current settings I can access "share" just fine but, if I try to make it only for valid users it doesn't prompt me to login and says I don't have permission. Pihome prompts me for login but even with correct conditionals tells me I don't have permission.
Code: Select all
[share]
Comment = kevin's storage
Path = /media/pi/storage/kevin
Browseable = yes
Writeable = Yes
only guest = no
create mask = 0777
directory mask = 0777
Public = yes
Guest ok = yes
[pihome]
comment= Pi Home
path=/home/pi
valid users = pi
browseable=Yes
writeable=Yes
only guest=no
create mask=0777
directory mask=0777
public=no