I'm writing an application (Progress language) that needs to:
1) load the contents of a cron table into the Progress application;
2) display this information in a human manner and allow a select group of people to update it (these people are logged in as themselves, not as root);
3) save everything back to the cron table (probably just overwrite the existing file with the newly generated one).
My questions relate to (1) and (3). The cron file is located in a directory called /var/spool/cron/crontabs/
-r-------- 1 root sys 1978 May 24 10:58 qadbatch
As you can see, only root can Read and Write to this file (and we like it this way!!).
Any ideas on how to read and overwrite this file without being root?
Notes:
A- The Progress application can run any Unix commands or scripts and retrieve their output (but it cannot run interactive commands such as 'crontab -e').
B- Users do not have access to the crontab command.
Thanks!!
R�al