How can I allow user2 to view and change user1's cron jobs?
Running CentOs, user1 is an application account that has several daily cron jobs associated with it. It is in the /etc/cron.allow file. User2 is someone in support, who needs to be able to view what cron jobs user1 has set, and occasionally change them. User2 cannot be given any kind of box administrative privileges. Even if I add user2 to the /etc/cron.allow file, if I try to run 'crontab -u user1' it says I have to be privileged to to use the -u switch.
Is there a way that I can give user2 rights to run the -u switch, without making them any type of box admin? Or, possibly better, shouldn't it be possible to give a bash script that runs "crontab -l" or "crontab -e" the setuid attributes, and then have user2 run that script to view/modify the cronjobs for user1? (This didn't work when I tried it, though some online sources makes me think it should).
Last edited by DrinkinHomeBrew; 12-03-2013 at 09:23 PM.