Bug 28918
Summary: | Root crontab HOME=/ confuses some programs | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | rbulling |
Component: | crontabs | Assignee: | Jason Vas Dias <jvdias> |
Status: | CLOSED NOTABUG | QA Contact: | Brock Organ <borgan> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | dr, jr-redhatbugs2 |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-08-10 22:03:27 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
rbulling
2001-02-22 20:26:11 UTC
This was actually switched to / a few releases back. I don't recall why off the top of my head, but there was a reason. Will have to check into it. FYI, this problem also impacts the MySQL package, last I checked. In order for
the log rotate script to find the password file, I had to symlink /.my.cnf -
> /root/.my.cnf
To fix this "problem", simply prepend: HOME=/root to your cron job, so the cron job would look like: * 12 * * * root HOME=/root autorpm or similar. We do not want whatever happens to be in ~root/{.login,.profile,.bashrc} to affect all cron jobs. |