Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Feb 2002 12:20:49 -0500
From:      Bill Moran <wmoran@potentialtech.com>
To:        "Jason Halbert" <jason@jason-n3xt.org>, "Bill Schoolcraft" <bill@wiliweld.com>, <questions@FreeBSD.ORG>
Subject:   Re: Samba Question
Message-ID:  <02022612204901.00300@proxy.pt.com>
In-Reply-To: <JAEKLKAIMBIFJACKGDCAKECCCAAA.jason@jason-n3xt.org>
References:  <JAEKLKAIMBIFJACKGDCAKECCCAAA.jason@jason-n3xt.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 26 February 2002 10:59, Jason Halbert wrote:
> I'm not following this part about giving Samba usernames and passwords.
> None of the Win2k or WinXP boxes require usernames or passwords for file
> sharing.

That is generally not recommended because it is a complete lack of security.

> My smb.conf is the same as smb.conf.default except for the two lines I
> changed which were "workgroup" and "server name".

All you need to do is set:
security = share
guest account = nobody (or whatever FreeBSD user you want all users to log
in as)

Then in each share definition, make sure that you've enabled guest logins:
guest ok = yes

Read the man page for smb.conf, it explains this.  Especially the section on
the "security" parameter and the section at the beginning that describes
how the various security parameters work together to provide login
security.
Also, posting questions like this to the samba@lists.samba.org list will
probably get you quicker answers. 


> -----Original Message-----
> From: owner-freebsd-questions@FreeBSD.ORG
> [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Bill
> Schoolcraft
> Sent: Sunday, February 24, 2002 22:22
> To: questions@FreeBSD.ORG
> Subject: Re: Samba Question
>
> At 25 Feb 2002 it looks like Stuart Tanner composed:
> > On Mon, 2002-02-25 at 10:10, Jason Halbert wrote:
> > > Hi All:
> > >
> > > I have been trying to get Samba working with no luck.  I installed it
>
> from
>
> > > ports.  I edited the smb.conf.sample and changed the values to what I
>
> think
>
> > > match my network.  I am trying to get my FreeBSD box on my simple
> > > peer-to-peer Win2k and WinXP network.  I changed the "workgroup" and
> > > "server string" to my workgroup name and what I wanted the FreeBSD box
>
> to
>
> > > be called.  I'm not able to connect to the other Windows boxes and they
> > > can't see the UNIX box.  The UNIX box has two NICs in it; one public
>
> and
>
> > > one private.  All the boxes are on the public network and nothing is on
>
> the
>
> > > private (it's there for future NAT).
> > >
> > > Does any one know of a good straight forward method for getting Samba
> > > working with a simple peer-to-peer network?
> >
> > Have you run /usr/local/bin/testparm?
> > Have you checked the samba logs: /var/log/log.smbd &
> > /var/log/log.<machinename> (may not exist)?
> >
> > testparm will check your smb.conf file and report any errors.  It only
> > checks that smbd will load the file and not that the settings will work
> > with your network.
>
> The following steps may not make it to the cover of
> "Samba_Magazine" but they work each and every time I go to setup
> basic filesharing with Samba.
>
> I would like to suggest that you have compared what your explicitly
> setting in the smb.conf file "then" see what's left in the results
> of testparm. The stuff in the results of testparm are exactly what
> Samba's going to do also, and where Samba's going to look for
> directions in conjunction with stuff in smb.conf.
>
> READ EACH AND EVERY LINE OF THE OUTPUT OF "testparm" AND CHECK YOUR
> SYSTEM TO SEE IF EVERYTHING MATCHES.
>
> testparm | less
>
> You need to have the "same" workgroup name on your smb.conf file as
> your windows network for basic setup.
>
> You need to have the same username and passwords on the BSD box and
> the windows box.
>
> Did you see any errors when using "testparm?" like the missing
> "smbpasswd" file or when you ran:
>
> "smbpasswd -a username"
> "smbpasswd username"
>
> That's some of the basics in my own simple words.
>
> --
> Bill Schoolcraft
> PO Box 210076                 -o)
> San Francisco CA 94121         /\
> "UNIX, A Way Of Life."        _\_v
> http://forwardslashunix.com


-- 
Bill Moran
Potential Technology technical services
http://www.potentialtech.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?02022612204901.00300>