[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] cron jobs
- Subject: [ale] cron jobs
- From: ale_nospam at fayettedigital.com (Jim Lynch)
- Date: Sun, 07 Aug 2011 04:25:47 -0400
- In-reply-to: <[email protected]>
- References: <CALRLYEkRyE6YVO3ezN=oVw2YqDMCbKzgSErhuqPS743Cz-5djA@mail.gmail.com> <[email protected]>
On 08/05/2011 03:22 PM, Lightner, Jeff wrote:
>
> Does the user exist in /etc/passwd? (or NIS or LDAP?) crontab ?e is
> for editing system users. The message you got suggests the otrs
> ?home directory? is /opt/otrs.
>
> When you ran crontab ?e did you run it as the otrs users or as root?
> (If any other user it would likely fail due to permissions as you saw.)
>
> ------------------------------------------------------------------------
>
> *From:*ale-bounces at ale.org [mailto:ale-bounces at ale.org] *On Behalf Of
> *Wolf Halton
> *Sent:* Friday, August 05, 2011 2:52 PM
> *To:* Atlanta Linux Enthusiasts
> *Subject:* [ale] cron jobs
>
> I want to do a cron job for otrs user, to check for mail hourly from
> my mail server
> otrs at localhost doesn't have a 'real' home folder, and
> crontab -e saves the file to /tmp
> when I look for my cron job
> crontab -r -u otrs
> it tells me -->
>
> cannot touch '/opt/otrs//.selected_editor': Permission Denied
>
If you need to run a cron as a user, consider putting the command in
/etc/crontab. There you can specify the user the command is run as.
Jim.