Linux Samba almost setup

Stephen L Arnold arnold.steve at ensco.com
Tue Mar 9 21:54:55 GMT 1999


When the world was young, "Tom Roche" <tom_roche at ncsu.edu> carved 
some runes like this:  

[snip]
> * can browse to BP in NT NetHood, and can see it but not connect as
>   either me or 'guest'--either gets
> 
> > Incorrect password or unknown username
> 
>   with correct passwords and usernames.

What version/SP level are the NT boxes?  What security mode is 
samba running in?  If you have the combination of security=user on 
the samba side, and NT4SP3 on the client side, then you will need 
to mount a drive from an NT command prompt, ie:

net use X: \\server\share (and use the username and password 
switches).  Then browsing from NT should work.  In my case, net 
view works fine (from OSR2) on the samba box, but fails trying to 
display shares on the NT box.  Go figure...

However, this won't work if Net View fails totally (you may have a 
bad workgroup name somewhere, or something similar).  You only need 
a guest account on the samba host (and you should be able to use 
the ftp or nobody accounts for this).  This is because samba 
handles browsing, printing, etc, via the guest account, and you 
shouldn't need (or try) to actually login as guest.  The easiest 
way to handle authentication is to have the samba host account 
names the same as your windoze client machine (host) names.  Then 
you can use the windoze network login for samba authentication.  If 
you need to login as yourself from a different machine, you'll need 
to use the usermap option and add your samba username/other machine 
name pair to this file.

Hope this helps, Steve

Sorry, I almost didn't see this part:

> # This option is important for security. It allows you to restrict
> # connections to machines which are on your local network. The
> # following example restricts access to two C class networks and the
> # "loopback" interface. For more examples of the syntax see the
> # smb.conf man page
> ;   hosts allow = 192.168.1. 192.168.2. 127.

You'll have to add your local net and loopback address to this and 
uncomment for anything to work...


******************************************************************
Stephen L Arnold                      http://www.rain.org/~sarnold
#include <std_disclaimer.h>
******************************************************************


More information about the samba mailing list