Open chrstphrchvz opened 8 years ago
This may be related to or a duplicate of #656. Not sure if the user was trying to connect from a Mac specifically.
Hi @chrstphrchvz , that issue had windows / linux testing, so not specifically Mac related
about those samba [global]
params, samba has guest account = nobody
on defaults
The link in my earlier comment is broken, https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server#Creating_a_Basic_guest_only_smb.conf_File seems to be a close replacement.
This issue might be won't-fix, if it is considered normal/intentional Samba configuration behavior for the per-share guest ok = yes
setting in smb.conf (which is what "Guest OK" in the Web UI controls) is intentionally distinct from the [global]
section settings I mentioned.
@chrstphrchvz Do you fancy updating this issue using our latest 4.0.5 offering after applying all pending updates? A lot has changed in both our base OS, as you know, and our samba config arrangements. We have also had a number of samba config fixes.
DIY installer instructions available in the following repo: https://github.com/rockstor/rockstor-installer
I set up a share with "Guest OK" set to Yes in Rockstor (3.8-14.11).
By setting
log level = 3
under[global]
in /etc/samba/smb.conf and inspecting the log in /var/log/samba/log.{client}, I found that I could not access a share from OS X Finder because the "Connect As: Guest" option sends the literal usernameGUEST
to samba, which is rejected. Linux clients (at least Caja) can normally access anonymous shares because they send an empty username, which is accepted.According to https://wiki.samba.org/index.php/Anonymous_Share I needed to add the lines under
[global]
in order for the guest access to work for OS X:Should these lines be in smb.conf by default
or settablefor Rockstor? EDIT: I now see where[global]
options can be set from Rockstor (under System > Services > Samba).