Samba anonymous shares

I’m currently writing up changes to the perfect, cheap NAS [1]. A major change is that I dropped support for user-level windows/samba shares and am using only a few public browsable shares. It turns out that Windows clients always ask the user for a password even though the samba share is anonymous. The reason seems to be that Windows submits the logged in user’s credentials which causes Samba to validate them, fail the validation and prompt for credentials.

So my current setup for anonymous, read-only shares looks like this:

[global]
  server string = fileserver
  workgroup = WORKGROUP
  netbios name = %h
  guest account = readonly
  syslog only = yes
  syslog = 2
  load printers = no
  writeable = no
  printable = no

[Movies]
  comment = Movies
  path = /mnt/snapraid/pool/Movies
  available = yes
  browsable = yes
  writable = no
  public = yes
  guest ok = yes

Resources

[¹] Building the perrect, cheap DIY NAS

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.