Bug 760212 - dovecot.tmpfilesd: wrong permissions 750 should be 755
Summary: dovecot.tmpfilesd: wrong permissions 750 should be 755
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dovecot
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michal Hlavinka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-05 16:21 UTC by Harald Reindl
Modified: 2011-12-06 11:32 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 11:20:58 UTC
Type: ---


Attachments (Terms of Use)

Description Harald Reindl 2011-12-05 16:21:49 UTC
the fedora apckage has here with 750 wrong permissions
see log below, they have to be 755 to avoid warnings each reboot
______________________

[builduser@buildserver:/rpmbuild/SOURCES]$ cat dovecot.tmpfilesd
d /var/run/dovecot 0755 root dovecot -
______________________

Dec  5 15:46:34 caladan dovecot: auth: Fatal: Error reading configuration: stat(/var/run/dovecot/config) failed: No such file or directory
Dec  5 15:47:33 caladan dovecot: master: Warning: Fixing permissions of /var/run/dovecot to be world-readable

Comment 1 Michal Hlavinka 2011-12-06 09:37:54 UTC
How do you reproduce this problem?

In post-installation script, we have:
install -d -m 0755 -g dovecot -d /var/run/dovecot

and /etc/tmpfiles.d/dovecot.conf contains
d /var/run/dovecot 0755 root dovecot -

So it should be created with correct permissions.

Comment 2 Harald Reindl 2011-12-06 09:59:02 UTC
sorry for the noise, maybe fixed in the meantime

i forked the fedora-srpm as for many other server-packages because the all to not use "Restart=always" which is the greatest benefit of systemd

Comment 3 Michal Hlavinka 2011-12-06 11:20:58 UTC
(In reply to comment #2)
> i forked the fedora-srpm as for many other server-packages because the all to
> not use "Restart=always" which is the greatest benefit of systemd

what about /etc/systemd/system/<daemon>.service

with content:
.include /lib/systemd/system/<daemon>.service

[Service]
Restart=on-failure/no

AFAIK it should help for your use case

Comment 4 Harald Reindl 2011-12-06 11:32:24 UTC
well but this does not change the fact that fedora-packages are restarting services while update packages which is simply UNACCEPTABLE 

i did the last 3 days 20 dist-upgrades via yum from F14 to F15 with all server-packages built at my own, all services where running while upgrade, after upgrade and while making cleanups and finally rebooted the machine

the automatic restarts leads in crahsing daemons most of the time and interruptions at moments you can not control - simply unusable


Note You need to log in before you can comment on or make changes to this bug.