Bug#820088: fixed in systemd-cron 1.5.4-2

Alexander Kurtz alexander at kurtz.be
Sun May 22 18:04:47 BST 2016


Control: reopen -1
Control: found -1 1.5.4-2

Hi!

It seems that the fix for #820088 introduced in systemd-cron version
1.5.4-2 is incomplete: At least on my system the setgid bit is only
correctly cleared after I re-install systemd-cron, but not after the
first install (see the log below for more details). Maybe the fix needs
to be placed in the preinst script instead of the postinst?

Best regards

Alexander Kurtz

=== Log ===

root at shepard:~# apt purge systemd-cron
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'systemd-cron' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root at shepard:~# dpkg -S /usr/bin/crontab 
cron: /usr/bin/crontab
root at shepard:~# ls -l /usr/bin/crontab 
-rwxr-sr-x 1 root crontab 36008 May 14  2015 /usr/bin/crontab
root at shepard:~# # Everything ok so far, this is vixie-cron...
root at shepard:~# 
root at shepard:~# apt install systemd-cron
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  cron*
The following NEW packages will be installed:
  systemd-cron
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 32.3 kB of archives.
After this operation, 63.5 kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://mirror.unitedcolo.de/debian stretch/main amd64 systemd-cron amd64 1.5.4-2 [32.3 kB]
Fetched 32.3 kB in 0s (76.8 kB/s)     
dpkg: cron: dependency problems, but removing anyway as you requested:
 exim4-base depends on cron | cron-daemon | anacron; however:
  Package cron is to be removed.
  Package cron-daemon is not installed.
  Package cron which provides cron-daemon is to be removed.
  Package anacron is not installed.
 exim4-base depends on cron | cron-daemon | anacron; however:
  Package cron is to be removed.
  Package cron-daemon is not installed.
  Package cron which provides cron-daemon is to be removed.
  Package anacron is not installed.

(Reading database ... 313723 files and directories currently installed.)
Removing cron (3.0pl1-128) ...
invoke-rc.d: policy-rc.d denied execution of stop.
Purging configuration files for cron (3.0pl1-128) ...
dpkg: warning: while removing cron, directory '/var/spool/cron/crontabs' not empty so not removed
Processing triggers for man-db (2.7.5-1) ...
Selecting previously unselected package systemd-cron.
(Reading database ... 313688 files and directories currently installed.)
Preparing to unpack .../systemd-cron_1.5.4-2_amd64.deb ...
Unpacking systemd-cron (1.5.4-2) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up systemd-cron (1.5.4-2) ...
Created symlink from /etc/systemd/system/multi-user.target.wants/cron.target to /lib/systemd/system/cron.target.
/usr/sbin/policy-rc.d returned 101, not running 'start cron.target'
root at shepard:~# dpkg -S /usr/bin/crontab 
systemd-cron: /usr/bin/crontab
root at shepard:~# ls -l /usr/bin/crontab 
-rwxr-sr-x 1 root crontab 12824 May  6 20:37 /usr/bin/crontab
root at shepard:~# # Ok, this shouldn't be there...
root at shepard:~# 
root at shepard:~# apt install --reinstall systemd-cron
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 32.3 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://ftp.stw-bonn.de/debian stretch/main amd64 systemd-cron amd64 1.5.4-2 [32.3 kB]
Fetched 32.3 kB in 0s (91.8 kB/s)     
(Reading database ... 313733 files and directories currently installed.)
Preparing to unpack .../systemd-cron_1.5.4-2_amd64.deb ...
/usr/sbin/policy-rc.d returned 101, not running 'stop cron.target'
Unpacking systemd-cron (1.5.4-2) over (1.5.4-2) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up systemd-cron (1.5.4-2) ...
/usr/sbin/policy-rc.d returned 101, not running 'start cron.target'
root at shepard:~# dpkg -S /usr/bin/crontab 
systemd-cron: /usr/bin/crontab
root at shepard:~# ls -l /usr/bin/crontab 
-rwxr-xr-x 1 root root 12824 May  6 20:37 /usr/bin/crontab
root at shepard:~# # WTF?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20160522/394b98db/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list