Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Samba is working mostly great for me. I am prompted for credentials the first time I access the share from my windows machines. I assume my creds are being cached somewhere as I am not prompted repeatedly on subsequent accesses. However, I would like to completely open up access to this particular share (it's all on a private and secured LAN). The server the samba share is on is streaming media to multiple client machines and I want those client machines to have write access to the samba share through whatever program it is running. These machines are part of a workgroup (not on a domain).

share|improve this question

2 Answers 2

up vote 2 down vote accepted

When you connect to the Samba box from a Windows client Windows will try and authenticate with the cached credentials used to login to Windows. If Samba isn't configured with a matching username and password in it's database (local tdbsam, Active Directory, LDAP etc) then it considers this a bad login, hence prompting you for good credentials.

You can map all bad login attempts to a guest account using: map to guest = Bad User

And configuring a guest account (make sure this has unix permissions for the share) with: guest account = nobody (nobody being the default)

And you may need guest ok = yes in the share definition too.

All of this will have the effect of making connections to the box appear to automatically login.

share|improve this answer
    
FYI, I found this to work regardless of security type once I added "public = yes" to my share definitions –  Peter Kahn Jul 26 '11 at 21:30

Probably something like this in the share definition of smb.conf:

[public]
  comment = Public Folder
  path = /home/public
  public = yes
  writable = yes
  create mask = 0777
  directory mask = 0777
  force user = nobody
  force group = nogroup

Though there are many ways to do it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.