Garayed.com  

Go Back   Garayed.com > Linux
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-03-2006, 02:30 PM
miki miska
 
Posts: n/a
Default LogRotate problem

Hi !

I have a problem with a file permissions after logrotate.

My logrotate configuration is like this:

/etc/logrotate.conf
......
include /etc/logrotate.d
....

in /etc/logrotate.d i have 3rd party sw configuration as well as mine
which looks like this:

/var/log/minefile.log {
weekly
missingok
rotate 5
compress
create 0640 root users
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null`
endscript
}

After being run from a cronjob, it gets group 'adm' and not 'users' as it
is said in configuration.

/etc/cron.daily/logrotate is

#!/bin/sh
test -x /usr/sbin/logrotate || exit 0
/usr/sbin/logrotate /etc/logrotate.conf


Ok, now if i run
/etc/cron.daily/logrotate manually OR
/usr/sbin/logrotate -f /etc/logrotate.conf

it is rotated, and owner is root:users

but from the cronjob itself, it is somehow wrong.




Any idea ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:45 PM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.