I set up OpenWRT with an old MyBookLive, what I am trying to set up is 2 smb shares with 2 users. One for me and one for the kids.
1 user (me) allows for access to both shares
1 user (kids) allows for access to only the kids share
Both Samba shares are set to user access only. The challenge I am facing is that the Parents user works flawlessly and allows for full access to both the shares. But the kids user is getting access denied on both shares.
In researching this, most people tend to talk about lack of appropriate access to the shared drives or using forceuser in the config. I am asking here because I can clearly access the drives with parentuser account, just not the other one. I have checked:
Verified and reset the passwords
Validated that the users are in the same group and set up accordingly
Below is my samba4 config file.
Any help thoughts are appreciated, if more logs are required, I am happy to provide them but not 100% certain on how to turn on the appropriate level of logging!
(note that I have changed the parentusername and kidsusername but it is consistent across).
As Pavelgl said, it is a permission issue. It looks like the parentuser is the owner of the share folders. Question: Should the correct user be root? I do certainly want write access.
By the way in the Kids directory, the kids have no access to the KidsTv directory at all.
Parents is the owner with full right and that seems to be the problem.
You dont have samba guest access activated.
Whoever access the samba share, he will need to have a valid samba account.
Those permissions are at Linux level.
First for the owner, second for the group and third everyone else (also with valid OpenWrt account).
Anyway, if you are worried, check chmod 775 /mnt/ -R.
In this case everyone else will have only read and execute rights, and I beleive that the problem is the missing execute permission.
Thank you! I set chmod to 775 and it still works, so I'm going to leave that for now and if I really need to switch to 777 I appreciate knowing that it's still secure