[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] cron jobs



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.