Re: packaging cronjob, run as non-root user

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

 



Is there any reason you can't specify the user instead of root in the cron file?

Randall Wood
Alexandria Software
randall.h.wood@xxxxxxxxxxxxxxxxxxxxxx
http://alexandriasoftware.com

> On Nov 17, 2016, at 10:27, François Kooman <fkooman@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
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