Below is my samba config (for samba 2.2). No password, nor any protection other than IP address filter (see "hosts allow") so use with caution :)
[global]workgroup = PARKNETserver string = Pogoplug Samba2 Serverhosts allow = 192.168.3. 127.null passwords = yesguest account = rootlog file = /opt/var/log/samba/log.%mmax log size = 50security = shareencrypt passwords = nosmb passwd file = /opt/etc/samba/smbpasswddns proxy = nopreserve case = yes[ShareAll]comment = Test sharepath = /tmp/.cemntavailable = yespublic = yeswritable = yesprintable = nocreate mask = 0777guest ok = yesbrowseable = yes
I know this is somewhat gross as far as samba configurations go, but hopefully it will be a working start :)
PS. Turns out "encrypt passwords = no" doesn't actually help, but prevents non-workgroup machines to connect without passwords (at least from a Windows XP machine). I've now set it to "yes".
8 comments:
Hey great write up, I am however being asked for a username and password when i connect to the share - how do you set those?
Thanks
Scott
You shouldn't be. Maybe you didn't change workgroup to match yours ? Or maybe you need to do "smbpasswd -a root" to create an entry for root in smbpasswd...I certainly did that, so that's missing in the setup instruction...
Bizzar..
I cant even run smbpasswd... says it is not found.
-bash-3.2# cd etc/samba/
-bash-3.2# ls
secrets.tdb smb.conf
-bash-3.2# smbpasswd -a root
-bash: smbpasswd: command not found
-bash-3.2#
does this need to be run from a certain directory - I apologize for my newbness..
K i found smbpasswd and did the command, it is still asking for a username and a password... restarted samba as well..
when i did the smbpasswd i left the passwords blank (hit enter twice) - its on my network, shows up under my mac, however still asks for a password, when i select guest it says the server does not accept guest logins.
this is my smb.conf file (same as your but i edited the workgroup and hosts allowed to match my domain.
[global]
workgroup = neighbornet
server string = Pogoplug Samba2 Server
hosts allow = 192.168.1. 127.
null passwords = yes
guest account = root
log file = /opt/var/log/samba/log.%m
max log size = 50
security = share
encrypt passwords = no
smb passwd file = /opt/etc/samba/smbpasswd
dns proxy = no
preserve case = yes
[ShareAll]
comment = Test share
path = /tmp/.cemnt
available = yes
public = yes
writable = yes
printable = no
create mask = 0777
guest ok = yes
browseable = yes
I suspect your samba client isn't using the matching workgroup name - even with the smb.conf as show, my windows machines with the same workgroup names can connect without password. However, for machines without the matching workgroup names, it turns out smbpasswd is red-herring in that case - simply setting "encrypt passwords" in smb.conf to "yes" made it working with a windows machine that have different workgroup connect successfully. YMMV of course :)
Yup, that worked for me.... thanks a ton man, Boxee is now happy again!
-S
Your setup works great on my machine. Thanks for the how to!
Post a Comment