[NTLUG:Discuss] Samba Configuration

Greg Hewett ghewett at d-techcorp.com
Wed Aug 8 09:23:18 CDT 2001


Check out "map to guest"  I have not used it, but in theory it should do what
you want.

It will require you to user "security=user" and set up the smbpasswd database
of your users, but what I think that it does if a username is not valid or a
username does not exist, then it will map the account to a guest account.  If
it is a real account, then they get normal priviledges.  your smb.conf would
then contain these lines

map to guest = Bad Password

[files]
  guest ok = yes

[printer]
  guest ok = no

I have not tested this, but in theory it looks like it should work.  I also
think it might be a little easier than runing two services. 

Note:  you might run into permissions problems with running real users and
guest users.  you might need to change the create masks to 777.


Greg

 
- 
On Wed, Aug 08, 2001 at 08:00:26AM -0500, Randall Gibson wrote:
> If I require a password right now, Windows will try to use its login
> username/password. If that fails, it just fails, doesnt prompt user for
> correct password. 
> The other alternative I guess will be to setup different users in windows
> so that only the people I want to print can, if they login with thier
> username.
> 
> Thanks!!
> 
> On 2001.08.07 23:06 Richard Geoffrion wrote:
> > but....but......can't you just put a password on the printing share??  or
> > is
> > that NOT what he is trying to do?
> > 
> > -Richard  <-maybe missing the point...
> > 
> > ----- Original Message -----
> > From: "Greg Hewett" <ghewett at d-techcorp.com>
> > To: <discuss at ntlug.org>
> > Sent: Tuesday, August 07, 2001 10:58 PM
> > Subject: Re: [NTLUG:Discuss] Samba Configuration
> > 
> > 
> > > I am going to shoot from the hip here and say that you cannot do this
> > with
> > one
> > > instance of samba, but I do think that it would be very possible to to
> > this
> > > with two instances of samba on the same box.  i.e.  one instance has
> > your
> > > shares, and the other instance has you printers.  This would require
> > different
> > > ip addresses for each of them, and there would also be different
> > netbois
> > names.
> > > If you are interested in trying this, I can be a bit more verbose.
> > >
> > > Greg
> > >
> > >
> > >
> > > On Tue, Aug 07, 2001 at 08:47:30PM -0500, Randall Gibson wrote:
> > > > I have a working samba configuration, but I want to make a few
> > changes.
> > I
> > > > want to leave shared folders accessable, but require users to enter a
> > > > password for printing. The client is a Win2K-pro machine.
> > > > Is it possible to do this ??
> > > >
> > > > On 2001.08.07 09:09 David WIlson wrote:
> > > > > Look in your smb.conf file and maker sure you have the following
> > line
> > > > > entered:
> > > > >
> > > > >   encrypt passwords = yes
> > > > >
> > > > > in you global definition, windows needs to see this line to
> > connect...
> > > > >
> > > > > by the way, nice name...
> > > > >
> > > > > David Wilson
> > > > >
> > > > > > I have having a difficult time getting Samba configured.  I am
> > running
> > > > > > RH 7.1  I have used SWAT to configure the smb.conf file. 
> > Testparm
> > > > > > checks ok, Samba Status shows to  be running.  I can smbclient -L
> > to
> > > > > > other hosts,  I just can not see my machine from my WinMe, Win98
> > > > > > network neighborhood.  Any suggestions?
> > > > > >
> > > > > > When I do manage to see it,  how do I share an ODBC database via
> > Samba?
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > > > David Wilson
> > > > >
> > > > >
> > > > > ___________________________________________________
> > > > > This email was sent using Lindsey Systems Networks.
> > > > >  "The most innovative ISP on the Web!"
> > > > >   http://lindseysystems.com/
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > http://www.ntlug.org/mailman/listinfo/discuss
> > > > >
> > > > >
> > > > _______________________________________________
> > > > http://www.ntlug.org/mailman/listinfo/discuss
> > > _______________________________________________
> > > http://www.ntlug.org/mailman/listinfo/discuss
> > >
> > 
> > _______________________________________________
> > http://www.ntlug.org/mailman/listinfo/discuss
> > 
> > 
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss



More information about the Discuss mailing list