I've been trying to set up Samba shares for some directories on a NAS, and I can't seem to be able to get it to work.
A minimalized version of my smb.conf
boils down to
[global]
dns proxy = no
create mask = 0664
force create mode = 0664
directory mask = 0775
force directory mode = 0775
[Media]
path = /srv/Media
writeable =yes
/srv/Media
and its descendants belong to user and group samba
with modes 775.
The user I am trying to access the share with is user
in group samba
, i.e. he has read and write permission to the path in question.
I have verified this by su
ing into user
and cd
ing to /srv/Media
, where I can list and modify files without issue.
To verify that my Samba password (set with smbpasswd -a user
) is correct, I have tried to connect with smbclient while giving an intentionally wrong password, which gets answered with NT_STATUS_LOGON_FAILURE
as expected, while connecting with the correct password drops me in the smbclient shell.
Once in the shell however, if I try to ls
, I get NT_STATUS_ACCESS_DENIED listing \*
.
Mounting via CIFS or gvfs doesn't work either.
I've researched many questions and articles with similar issues, but pretty much everything I've found was due to permission issues on the shared directory. Having verified that the user in question can indeed access the directory in question locally but not over Samba, I am lost.