LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-15-2010, 11:46 PM   #1
saiyan
LQ Newbie
 
Registered: Mar 2010
Posts: 3

Rep: Reputation: 0
Question prevent samba logging system messages


Hi,

I’m looking into preventing the samba messages from appearing in the system log (/var/log/messages).

I added syslog = 0 to smb.conf and reloaded the config but messages are still appearing…

Please suggest or advise how to suppress logging or reconfigure samba such that the “nmbd” and “winbindd” messages do not appear in /var/log/messages.

S.
 
Old 03-15-2010, 11:53 PM   #2
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Bangalore, India
Distribution: Linux Mint 13
Posts: 590

Rep: Reputation: 64
Quote:
Originally Posted by saiyan View Post
Hi,

I’m looking into preventing the samba messages from appearing in the system log (/var/log/messages).

I added syslog = 0 to smb.conf and reloaded the config but messages are still appearing…

Please suggest or advise how to suppress logging or reconfigure samba such that the “nmbd” and “winbindd” messages do not appear in /var/log/messages.

S.
Disable the following line in /etc/smb.conf:
Quote:
log file = /var/log/samba/log.%m

See if it works.........
 
Old 03-16-2010, 01:19 AM   #3
saiyan
LQ Newbie
 
Registered: Mar 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Tah for the reply.

I'm guessing that would also disable standard samba logging though yes? eg. log.machine1 etc

I wish to allow samba logging to the standard samba logfiles, but prevent "/var/log/messages" getting clogged up by samba.

S.
 
Old 03-16-2010, 01:50 AM   #4
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Bangalore, India
Distribution: Linux Mint 13
Posts: 590

Rep: Reputation: 64
Add the following line in /etc/syslog.conf file:

Quote:
smbd.* /dev/null
Don't forget to restart the syslog service.

Last edited by Sayan Acharjee; 03-16-2010 at 01:57 AM.
 
Old 03-17-2010, 06:18 PM   #5
saiyan
LQ Newbie
 
Registered: Mar 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Tah again,

I could have sworn that would have worked.
I tried the following
(and restarted the syslog via /sbin/service syslog restart)

# Suppress messages from samba.
nmbd.* /dev/null
smbd.* /dev/null
winbindd.* /dev/null

For interests sake the messages I'm getting are below (I'm not concerned about the messages themselves, I can chase them up at my leisure via the samba logs)

Mar 18 09:58:29 SERVER nmbd[3808]: query_name_response: Multiple (2) responses received for a query on subnet xx.yy.z.zz for name DOMAIN<1d>.
Mar 18 09:58:29 SERVER nmbd[3808]: This response was from IP xx.yy.z.zz, reporting an IP address of xx.yy.z.zz.

What can I try next?

S.
 
  


Reply

Tags
messages, samba, syslog


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prevent user from logging out via Xvnc t0bias Linux - Desktop 5 03-01-2009 11:14 AM
Prevent Kernel Boot Messages 3saul Linux - Software 1 10-08-2005 11:56 PM
Apache: prevent logging certain URLs ? michaelsanford Linux - Software 1 07-22-2005 07:48 PM
Prevent history logging new@linux Linux - Newbie 3 03-08-2005 11:26 PM
Prevent a user from logging into X? sorrodos Linux - Security 6 06-26-2004 03:30 PM


All times are GMT -5. The time now is 03:18 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration