Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109058 - vixie-cron /etc/crontab set to HOME=/ rather than HOME=/root
Summary: vixie-cron /etc/crontab set to HOME=/ rather than HOME=/root
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Cron Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-12 14:31 UTC by Matt Rae
Modified: 2005-12-16 19:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Rae 2005-10-12 14:31:45 UTC
Since the system crontab runs commands as root, it might be helpful to have the
home directory HOME set to /root rather than /. 

Reproducible: Always
Steps to Reproduce:
1. add mail.sh to cron.daily directory
#!/bin/bash
echo "this won't mail because it won't use gpg keys root has installed" |
/usr/bin/gpg -ear nobody@nobody.com | /bin/mail -s "body comes out blank"
example@example.com
2. When vixie cron runs the script the message sent will be blank
3.



Expected Results:  
if HOME=/root in /etc/crontab then gpg will encrypt the email correctly.
Comment 1 Ciaran McCreesh 2005-12-16 19:12:32 UTC
Hrm, no-one else seems to do this. Don't think it's a good idea to break with tradition when there's such an easy workaround for scripts/