Bug 31962 - не правильный user в /etc/cron.daily/sogo-tmpwatch
: не правильный user в /etc/cron.daily/sogo-tmpwatch
Status: CLOSED FIXED
: Sisyphus
(All bugs in Sisyphus/sogo2)
: unstable
: all Linux
: P3 normal
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2016-04-12 11:26 by
Modified: 2016-04-15 18:52 (History)


Attachments


Note

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


Description From 2016-04-12 11:26:13
SOGO работает от имени _sogo
а в /etc/cron.daily/sogo-tmpwatch указан sogo

find "$SOGOSPOOL" -mindepth 1 -type d -user sogo -empty -delete > /dev/null

заодно в logrotate добавить 

su _sogo _sogo

иначе

rotating pattern: /var/log/sogo/*.log  after 1 days (7 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/sogo/sogo.log
error: skipping "/var/log/sogo/sogo.log" because parent directory has insecure
permissions (it's not owned by "root"); consider using "su" directive in config
file to tell logrotate which user/group should be used for rotation.

ну и все тоже для Sogo3
------- Comment #1 From 2016-04-15 18:52:52 -------
sogo2-1:2.3.10-alt1 -> sisyphus:

* Tue Apr 12 2016 Andrey Cherepanov <cas@altlinux> 1:2.3.10-alt1
- New version
- Use sope2 instead of sope >= 3.0.0
- Fix user name in tmpwatch and logrotate rules (ALT #31962)
- Add dlinklist.h from Samba
- Fix unowned directories