Maybe I should have written "cron runs
programs as the user for which you edited the crontab settings". The cron daemon itself runs as root, of course, but programs from the user's crontab entries are of course run as the user.
Quote:
cron invokes the command from the user's HOME directory with the shell, (/usr/bin/sh).
cron supplies a default environment for every shell, defining:
HOME=user's-home-directory
LOGNAME=user's-login-id
PATH=/usr/bin:/usr/sbin:.
SHELL=/usr/bin/sh
Users who desire to have their .profile executed must explicitly do so in the crontab entry or in a script called by the entry.
|