Hello dear list, I've a problem with creation of a logfile in /var/log.
I have running a cronjob with a script, that should log in a file under /var/log/. (using logger is not possible) The script is running under a normal user. Logrotate should care for filesize and pack them. My Problem is, that the script is not allowed (because of insufficient rights) to create a logfile under /var/log on it own. So I thought, that logrotate can do this for me and set the permissions that the user can write (statement: create 644 user root). But thats wrong. Logrotate creates only an empty file if it rotated the file before. Also using the option "nomissingok" does not work, because it only throws (as the man says) an error message (instead of create the file). Also to use a logrotate script ("prerotate" or "firstaction") like: /bin/touch /var/log/script.log /bin/chown user.root /var/log/script.log /bin/chmod 640 /var/log/script.log is not possible, because the actions are only executed if the conditions are fulfilled for rotation.. So anyone has an idea to create the logfile? Many thanks in advance Meike -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAFNHiA_0xi=QZvd4n-qcEyvY=fyc-dxgzrnmzwvjc73cdnz...@mail.gmail.com