Help with smb.conf - removing authentication

Soldato
Joined
31 Dec 2003
Posts
4,740
Location
Stoke on Trent
Hi all,

I have the following as my smb.conf, all I want to achieve is no password prompt on Windows to access the share, can anyone help me please?

Code:
[Elements]

        path = /mnt/Elements
        browseable = yes
        read only = no
        public = yes
        guest ok = yes
 
I have tried security = share at one point yes.....should I replace what I have with what you've put then and that will work do you reckon?

What I posted is all that is contained in my smb.conf btw, that is it.

thanks for this
 
Last edited:
Wait, what? Does it work at all? Which distro?

Code:
[global]
   workgroup = WORKGROUP
   server string = %h server
   dns proxy = no
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog = 0
   panic action = /usr/share/samba/panic-action %d
####### Authentication #######

   security = share
   encrypt passwords = true
   passdb backend = tdbsam
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   pam password change = yes

I have my desktop serving up a guest share for my gf steal files from. This doesn't require a password and comes up when she goes to run //computername/sharename

yea it works, it's XBMCLive which is a version of Ubuntu.

It allows me to connect to it from another Linux machine on the network with no password prompt, and it's visible to my Windows 7 box, but it moans. (asks for a password)

My old smb.conf didnt used to be much bigger than this and it achieved what I wanted.....does it prompt your gf for any credentials at all?
 
cheers for the replies.

It does not, no. Stupid question, you are restarting the service when you make changes, yes?

yep

Does your service run as the same user which owns the directory?

I don't know, how can I tell?

Is your Win7 on the same WORKGROUP.

The Win 7 is definitely in the Workgroup, but i'm not sure the linux box is actually.......do I need to add it somehow?

Using XBMC as the username doesn't work btw, still prompts. :(
 
Back
Top Bottom