On Wed, 19 Sep 2012 18:11:55 +0200, Meike Stone wrote:

> 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.

Sure:

sm01@stt008:~$ ls -la /var | grep log
drwxr-xr-x 12 root root  2784 sep 19 08:02 log

Only root user can write there unless you change the directory 
permissions.

(...)

> So anyone has an idea to create the logfile?

As it seems you can't use use the syslog facility, how about storing the 
log files anywhere under the user home directory and instruct logrotate 
to find the files there? Once they are created you can move them to a 
different place by means of an automated job :-?

Greetings,

-- 
Camaleón


-- 
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/k3ct0o$s2t$1...@ger.gmane.org

Reply via email to