Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
crontab is a text file. Open, read, rewrite, close. You only need root rights.
You need root permissions to edit /etc/crontab, which is not good. If for some reason the program still works as root, it is better not to touch this file, but to create separate task files in /etc/cron.d and pull service cron reload.
To run a task as a regular user, you need to call the crontab utility, feeding it a file with tasks. They will be stored in /var/spool/cron/crontabs (depends on the implementation), there is no need to pull the service.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question