On Thu, 2005-06-02 at 14:29 -0400, Matthew Miller wrote: > On Thu, Jun 02, 2005 at 11:13:39AM -0700, M E Fieu wrote: > > How to settle this issue. Use apache to run cron job > > to generate those file ? But my apache user account > > has no shell configured. /bin/nologin I need to > > enable its shell ? > > Make a group named "mysecret". Put apache in that group -- `gpasswd mysecret > -a apache`, and create a non-privileged user account and put that in same > group, and have that user run the cron job and make the data mode 640 > (That's "-rw-r-----"). And restart apache. Alternatively, keep running from root's cron but have a job like this: runuser -s /bin/sh -c "your job" apache Paul. -- Paul Howarth <paul@xxxxxxxxxxxx>