Cron running as wrong user
I have a newly set up Red Hat 6 server I am trying to get up and running.
On it I have 2 users oracle and grid.
I log in as the oracle user and set up a cron to do a nightly data transfer.
All stuff I have done many times.
The script is getting executed as the grid user somehow. I can't figure this out.
I checked /var/log/cron and you can see oracle as the user executing the cron job.
I added the sourcing of the .bash_profile in the oracle users home in the script. It fails because it has no permissions. This seems clear to me that the execution environment is as if the grid user is running it.
There is nothing in the crontab for the grid user.
Does anyone have any idea of something I am missing? Or anything else I can check?
Thanks
Neil
|