Re: packaging cronjob, run as non-root user

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

 



On Thu, Nov 17, 2016 at 04:27:47PM +0100, François Kooman wrote:
> I'm trying to package a cron file after reading [1], but I am wondering
> what the best approach is to run a cronjob not as root while still using
> the /etc/cron.daily folder.

One possibility would be to use `su -c` in your script in
/etc/cron.daily. This preserves the advantage of flexible timing.

-- 
Matthew Miller
<mattdm@xxxxxxxxxxxxxxxxx>
Fedora Project Leader
_______________________________________________
packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux