logrotate for smbd log restarts nmbd instead of smbd

Bug #1375072 reported by Matthias Andree
258
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Marking security because this causes loss of logging information.

     1 /var/log/samba/log.smbd {
     2 weekly
     3 missingok
     4 rotate 7
     5 postrotate
     6 [ ! -f /var/run/samba/nmbd.pid ] || kill -HUP `cat /var/run/samba/nmbd.pid`
     7 endscript
     8 compress
     9 notifempty
    10 }

Please see line 6 - although we are rotating log.smbd,
logrotate is asked to send the HUP signal to the wrong process, nmbd.

In two places, nmbd.pid must be replaced by smbd.pid,
otherwise processes continue to log into a compressed/deleted logfile, causing logs to get lost.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: samba 2:3.4.7~dfsg-1ubuntu3.15
ProcVersionSignature: Ubuntu 2.6.32-65.131-generic-pae 2.6.32.63+drm33.26
Uname: Linux 2.6.32-65-generic-pae i686
Architecture: i386
Date: Mon Sep 29 02:06:53 2014
ProcEnviron:
 PATH=(custom, no user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SambaServerRegression: No
SourcePackage: samba

Revision history for this message
Matthias Andree (matthias-andree) wrote :
information type: Private Security → Public Security
Changed in samba (Ubuntu):
status: New → Confirmed
Revision history for this message
dino99 (9d9) wrote :

This version has expired a while ago

Changed in samba (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.