Hi all,
I had an issue where even though permissions were appropriately set for my SMB/CIFS share, attempting to browse the server via Win 7 would prompt me for login credentials.
Example..
My intention was to browse to \\Server\ (using Windows) and get a listing of all shares. If a non-authorized user attempted to open Share2 or Share3, they would be prompted for login credentials. If they opened Share1, they were allowed via read-only. (All shares were marked Browsable, and Share1 as Public. 'nobody' was given read-only to Share1 and recursively applied)
This was not happening on my OMV install, until I edited smb.conf and added 'security = share'. Now everything works correctly, as stated above.
I think this 'security = share' is deprecated.. is there another solution for this?
Also, I had 2 identical shares as far as ACL's, Privileges and Permissions. Using the example above (after adding security=share, and marking Share2 as 'Public', and granting 'nobody' read-only access), Share1 was accessible, and Share2 still prompted for login credentials (even though they had the same ACL/Privs/Permissions).
I went into smb.conf and edited out the following line in the [Share2] section.
(This 'valid users = ' line was not present in the [Share1] configuration.)
Now both shares work correctly. Anonymous browsing is fine, and still read-only. When I login as 'user1' I still have write access.
How can I make this change via the GUI, and have I caused any unforeseen issues by doing this?
To be clear, all changes to smb.conf were made via GUI, except for the line I added (security=share) and the single line I commented out.