PDA

View Full Version : need help configuring SAMBA...



Nanotech9
06-28-2002, 07:43 AM
if you dont know what SAMBA is, you cant help :)

so, basically, i'm running FreeBSD and i got SAMBA installed, ist the next to the latest version (the latest version was just released a week ago i think). I can get my 2K box to see it, but it wont log in. I believe it says i'm not authorized.

I've got the 2k box using a username and password that are identical to a username and password account i have setup on the BSD box... no go though.

Any suggestions?

jase71
06-28-2002, 09:02 AM
Gack. I've set it up twice, and gotten it working without many problems. But I'm not fluent enough with it to be much help to you.

Are you using SWAT to configure it? Makes it a lot easier to make changes and get Samba running right.

Check out the link below. It's on a linux site, but it ought to pretty well apply to BSD too.

http://www.linuxnewbie.org/nhf/intel/network/samba/samba1.html

Nanotech9
06-29-2002, 07:20 AM
ok, ill read it... BTW, in BSD, installing it from the Ports collection is REALLY simple - just /make install clean and let it do its thing. :)

thanks

hapoo
06-29-2002, 05:38 PM
not sure if its the same in bsd, but are you in the /etc/hosts file?

aglio412
07-01-2002, 07:30 AM
i told myself i wouldn't post anymore...but this is an issue i dealt with all weekend. i've been trying to get samba working correctly between my linux box and win2k. there are two methods of making this work...changing the registry settings in 2k to send unencrypted passwords, or set up samba to accept them. i tried both, and failed. the 2k box sees the shares, (if i map w/ IP addy) but cannot login. i think it was something to do with smbpasswd file, which i may have screwed up creating. nano, hapoo...anyone have advice on setting up the smbpasswd file correctly? i nkow there's a field for NT style passwords, but when i leave the value blank and try to create a samba user it errors out saying malformed pwd file. i'm going to read that article jase posted and see if it helps...but i'm definitely in a rut here. i'm thinking i need to fix up the network properties of my linux box as well...it doesn't show up in my network neighborhood...thinking it's a workgroup thing..any help there?

jase71
07-01-2002, 08:09 AM
Can you set it up without passwords, aglio? That's how I had mine set up...

Weakens security a little... but I just set up the hosts.allow and hosts.deny file and samba to only accept connections from specific IP addresses. Since everything was behind the firewall, and only the IPs of the two other local machines were accepted for connections, it was secure enough for the non-critical files I had on the samba shares.

The link I gave earlier got me up and running... so give it a look if you get a chance.

hapoo
07-01-2002, 10:17 AM
yeah, my shares are all on the internal lan so there are no passwords to worry about

ok guys, heres an example of a really really insecure but working smb.conf file, just gotta tweak it so it works with your own settings



workgroup= enterworkgrouphere

hosts allow = 192.168.100.
#(or whatever yours is, without the last set of numbers)


guest account = root

interfaces = 192.168.100.1 (your internal nic IP)

dns proxy = no
unix password sync = no
netbios name = MySambaServer
encrypt passwords = no
map to guest = never
password level = 0
null passwords = no
allow hosts = 192.168.100.
deny hosts = *.*.*.*
os level = 0
preferred master = no
domain master = no
wins support = no
dead time = 0
debug level = 0


[myfolder]
comment = my folder
path = /myfolder
read onfiltered= no
public = yes
browseable = yes
guest ok = yes
writable = yes
available = yes
guest onfiltered= no
only user = no