[Staff] path = /media/see-admin/Daten/Staff available = yes browseable = yes guest ok = yes writeable = no [sambashare] comment = Samba on Ubuntu path = /home/see-admin/sambashare read only = no browsable = yes
Your problem on both of these shares is the Linux permissions on the path to the shared folders. THe only user that can access these shares is "see-admin". If you want to force the client user to use the see-admin user name you have to add that user to the samba password database:
sudo smbpasswd -a see-admin
If you want guest user access or any other registered ( meaning a user added to smbpasswd ) you can change your share definition to these:
[Staff]
path = /media/see-admin/Daten/Staff
available = yes
browseable = yes
guest ok = yes
writeable = no
force user = see-admin
[sambashare]
comment = Samba on Ubuntu
path = /home/see-admin/sambashare
read only = no
browsable = yes
force user = see-admin
Then restart smbd:
sudo service smbd restart
Answer from Morbius1 on askubuntu.comchdir_current_service: vfs_ChDir(/data) failed: Permission denied
Apple Time Machine issues (smbd: chdir_current_service: vfs_ChDir(/mnt/user/TimeMachine2) failed: Permission denied) - General Support - Unraid
rhel - samba bug? smbd chdir_current_service: vfs_ChDir Permission denied in /var/log/messages - Unix & Linux Stack Exchange
yet another SMB share permissions question
I FINALLY managed to solve this problem.
first of all i removed the existing connections from windows 10 using net use * /delete from the command line since the credentials where saved and i changed them on the server
also for some reason i had to specify smbpasswd in /etc/samba/smb.conf: passdb backend = smbpasswd in the [global] section
also the /home permission where wrong and all my shares are in /home so i reset the permission to 755: chmod -R 755 /home
then i reset all the shares permission and group access based on my needs.
We had the [NT_STATUS_ACCESS_DENIED] error where users could access their HOME shares but not any other shares.
/var/log/samba/__ffff_172.16.0.35.log:
[2019/03/05 11:26:53.914706, 1] smbd/service.c:678(make_connection_snum) create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
This was caused by Domain Controllers being restarted whilst SAMBA and WINBIND servers were running. Simply restarting services winbind & smb resolved the issue.
A light fix; but worth a mention