rockstor / rockstor-core

Linux/BTRFS based Network Attached Storage(NAS)
http://rockstor.com/docs/contribute_section.html
GNU General Public License v3.0
557 stars 138 forks source link

anonymous shares not working for OS X #1427

Open chrstphrchvz opened 8 years ago

chrstphrchvz commented 8 years ago

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 username GUEST 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:

    map to guest = Bad user
    guest account = nobody

Should these lines be in smb.conf by default or settable for Rockstor? EDIT: I now see where [global] options can be set from Rockstor (under System > Services > Samba).

chrstphrchvz commented 7 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.

MFlyer commented 7 years ago

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

chrstphrchvz commented 3 years ago

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.

phillxnet commented 3 years ago

@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