I have a headless server running Debian 10 with Samba 4.9.5. On it I want to share a folder where any user has full read/write access. Here is my entire smb.conf file:
[global] workgroup = WORKGROUP netbios name = MyServerName security = user map to guest = bad user guest account = myuser dns proxy = no log level = 4 [Stuff] path = /home/myuser/share force user = myuser force group = myuser browseable = yes guest ok = yes write list = myuser read only = no myuser has read / write access for all files and read / write / execute access for all folders in /home/myuser/share. However, some of the files don't have write access for their group or other permissions. i.e. their permissions are 755, 644, etc.
For whatever reason, those files and folders are not writable by any client that connects to the share, even though I have force user set to myuser.
I also just noticed that map to guest doesn't seem to be working correctly either. If I connect with an invalid user name, it rejects it rather than mapping it to the myuser account and allowing access to Stuff.
Could someone help me figure out why this isn't working?
I did search around for similar questions and found this: How to create a Samba share that is writable from Windows without 777 permissions, but the accepted solution there is to use force user, which is precisely what I'm doing, but for some reason it's still not working.
myuserhave access to the file and directories? Also, add the output ofgrep -B3 browseable /etc/samba/smb.confto your question.myuserhas full access to all of the files and folders in the shared directory. Also, I included my entire smb.conf file in my question, so no need to add the output of grep; you can see that the share hasbrowseable = yes. (I did edit the question to make it more clear that this is more entire smb.conf file.)browseable = yesunder[homes]in/etc/samba/smb.conf? That's why I asked you add the output ofgrep -B3 browseable /etc/samba/smb.confto your question./etc/samba/smb.conf. What I included in my question is the entire contents of the file./etc/samba/smb.conf. I have Samba installed on a Debian 10 VM right now and it has far more than what you have.