A few swat comments. was:Re: [Samba] Does the SWAT tool come with the Red Hat 8.0 distribution?

Andrew Bartlett abartlet at samba.org
Mon Mar 17 03:23:12 GMT 2003

On Tue, 2003-03-11 at 19:56, John H Terpstra wrote:
> On Tue, 11 Mar 2003, mark wrote:
> > On Tue, 11 Mar 2003 07:06:41 +0000 (GMT)
> > John H Terpstra <jht at samba.org> wrote:
> >
> >
> > > I like this suggestion. Could you specify your dream wishes more
> > > clearly please.
> > >
> > > ie: I run SWAT and write the back-up file. Now I run it again and
> > > overwrite the backup file again? Where is the gain then? Do I only
> > > back it up if it does not exist? Then what about subsequent changes I
> > > make? Should it back it up to a file with time and date extensions? If
> > > so, homw many backups should I keep?
> > >
> > > Your suggestion perplexees me. I want some consensus on this before I
> > > change anything here.
> >
> > Consensus?  Dude!  You are a powerful overlord with cvs access!  You
> > don't need no stinking consensus!
> The biggest challenge of all is to have power and then use it only
> sparingly!

:-)  But that spoils all the fun!

> > You are right about the difficulty of figuring out how many times to
> > back up a smb.conf file.  In the few minutes I've though about it, I
> > came up with the idea of having swat itself write a few extra bytes at
> > the top of the file along the lines of "#Swat generated".  or
> > #0xaed9883344c2a2.  Something to indicate that this file should not be
> > backed up.  Really what I would like is if I have a smb.conf file that
> > I've hand edited I would like for smb.conf to back that file up.  So if
> > a smb.conf file didn't have the above mentioned few bytes it would be
> > backed up.
> If you provide patches I'll do my best to integrate them. :) Other than
> that, I'll take your comments on advice and will do something next time I
> make a change.
> Anyone else have any suggestions or wishes here?

Well, putting an MD5 sum at the top (or bottom) of the file would not be
that hard - and could be quite useful...

> > Maybe just a warning along the lines of  "about to overwrite your
> > smb.conf, would you like to save your original?"
> Ok. I'll implement that one.

Or what about just calling RCS on the file?

Andrew Bartlett

Andrew Bartlett                                 abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
http://samba.org     http://build.samba.org     http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba/attachments/20030317/2628175a/attachment.bin

More information about the samba mailing list