* Bret Hughes
> On Fri, 2003-05-30 at 07:52, Yanick Quirion wrote:
>> Hi Jon
>> 
>> I'm logging on with oracle user which is UID 501. It seems to start
>> the cron job with the root user, but I don't know why. For example
>> I make this little test:
>> 
>> 8 51 * * * /bin/ls -als
>> 

>> I receive a message with the result. The listing was the root
>> folder of my oracle user (/home/oracle), but the e-mail was still
>> sent by user root. I did the same test on my Solaris, the result
>> was the same except the mail was sent by user oracle.
>> 
>> Any other hints?
>> 
>
> is the MAILTO variable set in the crontab?

MAILTO is the receiver of mail, not the sender.  It is not suprising
that mail is sent by the user root, as root is the owner of the cron
daemon.  However, this does not mean that the cron job is _run_ by
user root.  Check this by issuing the id command in your cron job:

*/1 * * * * /bin/id

Here you can see what user your cron job is run 

(Bottom line:  Nothing seems to be out of order for Yanick.)

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to