[Samba] [Nearly Resolved] Samba-3 by Example, Ex 2.4
Eric Hines
eehines at comcast.net
Sun May 8 01:00:33 GMT 2005
I'm looking forward to your book.
Since %S now means DOMAIN/username, then won't it also now fail in any
standalone server config since there's no domain to interpret in a standalone?
At 05/07/05 19:24, you wrote:
>On Saturday 07 May 2005 17:39, Eric Hines wrote:
> > John,
> >
> > I'm running Samba 3.0.14a on an FC3 machine, and I'm working from the
> > printed 2004 edition of your book (when is your updated version coming
> > out? 470 pages of pdf is a lot to print out, and being the throwback that
> > I am, I'm much more comfortable with a book than with reading from a
> > computer monitor).
>
>It will be about 480 pages all done, up from 367 pages. A lot has changed. It
>has taken me 6 weeks full time work.
>
> >
> > I went through the WHATSNEW.txt with this version, but all that said was
> > that the %S bug was fixed after 3.0.0. I notice, though, that in your
> > updated example [files] does not have valid users listed in any guise,
> > although in many (most?) of the later examples in your updated book, you
> > still use %S quite freely in the valid users field.
>
>Ah, but the interpretation of the %S macro changed during the 3.0.x life from
>'username' to 'DOMAIN\username'. Additionally, some macros (like %S) now have
>slightly more restricted use. It is better to avoid use of %S if possible.
>The only use that is safe is in the homes meta-service. It will fail almost
>everywhere else because the user name and the service (share name) will not
>match.
>
>- John T.
>
> > Thanks
> >
> > Eric
> >
> > At 05/07/05 17:48, you wrote:
> > >Eric,
> > >
> > >Are you working from the printed version of the book?
> > >Are you working from the update that is on the Samba web site?
> > >
> > >What version of Samba are you using?
> > >
> > >If you are using a version more recent than 3.0.7 I suggest you use the
> > > book "Samba-3 by Example" from:
> > >
> > > http://www.samba.org/samba/docs/Samba-Guide.pdf
> > >
> > >If you refer to the WHATSNEW.txt file that ships with your version you can
> > >see
> > >what changes were made that may explain why %S does not work.
> > >
> > >- John T.
> > >
> > >On Saturday 07 May 2005 16:17, Eric Hines wrote:
> > > > OK, I've got this one working, but only by enumerating the valid users
> > > > in the "files" share--%S wouldn't work in the valid users field (e.g.,
> > > > "smbclient //<servername>/files" would simply give an
> > > > NT_STATUS_ACCESS_DENIED error). This would be OK for a small LAN, but
> > > > for small enterprises or LANs with 75-100 users, as some on this list
> > > > have mentioned, that becomes cumbersome (would the field even hold 75
> > > > names?).
> > > >
> > > > So now my question is this, since it appears I still don't have my
> > > > users entirely correctly configured: %S, per the smb.conf man page, is
> > > > the service name (files in my case) and not the user name--but the man
> > > > page goes on to say that the %S macro attempts to deduce the user name
> > > > from the service name. How does the macro attempt to do this? Failing
> > > > that, are there any ideas about what I'm still doing wrong in
> > > > configuring my users? The relevant parts of my smb.conf file follow.
> > > >
> > > > Thanks for your help.
> > > >
> > > > Eric Hines
> > > >
> > > > [master]
> > > > comment = Master work area
> > > > path = /archive
> > > > valid users = mfwic
> > > > read only = No
> > > >
> > > > [files]
> > > > comment = The actual backups
> > > > path = /archive/%U
> > > > valid users = annlee, ehines
> > > > read only = No
> > > >
> > > >
> > > > Out of the argument with ourselves comes poetry, out of the argument
> > > > with others comes politics.
> > > > --Yeats
> > >
> > >--
> > >John H Terpstra, CTO
> > >PrimaStasys Inc.
> > >Phone: +1 (650) 580-8668
> > >
> > >Author:
> > >The Official Samba-3 HOWTO & Reference Guide, ISBN: 0131453556
> > >Samba-3 by Example, ISBN: 0131472216
> > >Hardening Linux, ISBN: 0072254971
> > >Other books in production.
> > >--
> > >To unsubscribe from this list go to the following URL and read the
> > >instructions: https://lists.samba.org/mailman/listinfo/samba
> >
> > Out of the argument with ourselves comes poetry, out of the argument with
> > others comes politics.
> > --Yeats
>
>--
>John H Terpstra, CTO
>PrimaStasys Inc.
>Phone: +1 (650) 580-8668
>
>Author:
>The Official Samba-3 HOWTO & Reference Guide, ISBN: 0131453556
>Samba-3 by Example, ISBN: 0131472216
>Hardening Linux, ISBN: 0072254971
>Other books in production.
>--
>To unsubscribe from this list go to the following URL and read the
>instructions: https://lists.samba.org/mailman/listinfo/samba
Out of the argument with ourselves comes poetry, out of the argument with
others comes politics.
--Yeats
More information about the samba
mailing list