How to set Samba log file names.

Chris Bünger cb at trimon.de
Sun Jan 20 22:19:03 GMT 2002


Hi,

have you tried smbd -D -l /where you want to log

chris
----- Original Message -----
From: "Joel Hammer" <Joel at HammersHome.com>
To: "Steve Snyder" <swsnyder at home.com>; <samba at lists.samba.org>
Sent: Monday, January 21, 2002 4:20 AM
Subject: Re: How to set Samba log file names.


> Edit the source files and recompile.
>
> OR
>
> You could edit the binary.  There is only one occurrence of log.smbd
> in the binary smbd. Use vi -b or some other editor to fix that up.
> Ditto, nmbd.  I have found this works well in other programs, like
> netscape. Just make sure you don't add or delete any bytes. This will
> be the easiest way, most likely.
>
> OR
>
> You could make log.smbd a symbolic link pointing to smbd.log. To get the
> offensive names out of sight, you could use the -l option (see smbd -h
> and nmbd -h) to change the base name for the log directory to some place
> where you will never have to see them.
>
> Joel
>
>  On Sun, Jan 20, 2002 at 09:36:47PM -0500, Steve Snyder wrote:
> > Oops!  I had a synapse failure when typing the Samba version number.
The
> > version I'm running is really v2.2.2.
> >
> > Sorry.
> >
> > ----------  Forwarded Message  ----------
> >
> > Subject: How to set Samba log file names.
> > Date: Sun, 20 Jan 2002 21:33:29 -0500
> > From: Steve Snyder <swsnyderOhome.com>
> > To: sambaOlists.samba.org
> >
> > Samba (v9.2.0, on Linux) wants to write log entries to files "log.nmbd"
> > and "log.nmbd", whereas I'd prefer "nmbd.log" and "smbd.log",
> > respectively.
> >
> > Note that these files names are *not* controlled by the "log file"
config
> > option.  This option handles client-specific logging.
> >
> > So... how do I get the daemon name and log designation turned around to
> > the "right" order?
> >
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba
>
>





More information about the samba mailing list