Discussion:
How to set Samba log file names.
Steve Snyder
2003-12-01 17:49:48 UTC
Permalink
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?

Thanks.
Steve Snyder
2003-12-01 17:49:48 UTC
Permalink
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 <***@home.com>
To: ***@lists.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?

Thanks.

-------------------------------------------------------
Joel Hammer
2003-12-01 17:49:48 UTC
Permalink
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
Post by Steve Snyder
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?
Chris Bünger
2003-12-01 17:49:48 UTC
Permalink
Hi,

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

chris
----- Original Message -----
From: "Joel Hammer" <***@HammersHome.com>
To: "Steve Snyder" <***@home.com>; <***@lists.samba.org>
Sent: Monday, January 21, 2002 4:20 AM
Subject: Re: How to set Samba log file names.
Post by Joel Hammer
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
Post by Steve Snyder
Oops! I had a synapse failure when typing the Samba version number.
The
Post by Joel Hammer
Post by Steve Snyder
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
Gerald Carter
2003-12-01 17:49:49 UTC
Permalink
Post by Joel Hammer
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.
smbd -l /var/log/samba/smbd.log

or fix the source and recompile... :-)








chau, jerry
---------------------------------------------------------------------
Hewlett-Packard http://www.hp.com
SAMBA Team http://www.samba.org
-- http://www.plainjoe.org
"Sam's Teach Yourself Samba in 24 Hours" 2ed. ISBN 0-672-32269-2
--"I never saved anything for the swim back." Ethan Hawk in Gattaca--
Continue reading on narkive:
Loading...