-   Linux - Software (
-   -   CRON directories. (

ironfrogclark01 03-03-2017 03:51 AM

CRON directories.
Hi everyone,

Good day, Im trying to modify the directories that holds the cron files created by users/packge, but I cant find which config I should modify, is it really feasible? if yes kindly provide your inputs.

for example I want to move the /var/spool/cron/crontabs/USER-cron-entry to /etc/cron.available, on what config should I look? is it possible to modify the directories that holds cron files created by users?


MensaWater 03-03-2017 08:05 AM

You could modify source files for all commands that touch cron files then recompile which would be quite an undertaking. You'd also have to remember to re-edit every time upstream commands were updated and applied.

Were it me I'd simply make a symbolic link instead.

Alternatively you could use the remount option of mount command:

Since Linux 2.4.0 it is possible to remount part of the file hierarchy
somewhere else. The call is
mount --bind olddir newdir
After this call the same contents is accessible in two places. One can
also remount a single file (on a single file)

ironfrogclark01 03-06-2017 01:25 AM

thank you for this information MensaWater

All times are GMT -5. The time now is 05:30 PM.