Bug 31962 - не правильный user в /etc/cron.daily/sogo-tmpwatch
Summary: не правильный user в /etc/cron.daily/sogo-tmpwatch
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: sogo2 (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Andrey Cherepanov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-12 11:26 MSK by Chess
Modified: 2016-04-15 18:52 MSK (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chess 2016-04-12 11:26:13 MSK
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 Repository Robot 2016-04-15 18:52:52 MSK
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