Is there any reason you can't specify the user instead of root in the cron file?
Randall Wood
Alexandria Software
randall.h.wood(a)alexandriasoftware.com
http://alexandriasoftware.com
> On Nov 17, 2016, at 10:27, François Kooman <fkooman(a)tuxed.net> wrote:
>
> Hi,
>
> 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.
>
> Using /etc/cron.d would be an option, as that allows to run jobs as
> different user, but maybe this is not the nicest...
>
> I could use "sudo" in the shell script, but this feels ugly as well. Any
> thoughts?
>
> Cheers,
> François
>
> [1]
https://fedoraproject.org/wiki/Packaging:CronFiles
> _______________________________________________
> packaging mailing list -- packaging(a)lists.fedoraproject.org
> To unsubscribe send an email to packaging-leave(a)lists.fedoraproject.org