On 04/05/10 09:36, Rainer Traut wrote:
Hi,

I think it's rather dangerous to let root and ordinary users delete
their crontab by "crontab -r" without confirmation.
Given that keys "e" and "r" are closely on keyboard.

Is there a way to let crontab confirm the deletion with a script or the
like?

Rainer


$ man crontab

       -i     This  option  modifies  the  -r  option to prompt the
              user for a ’y/Y’ response before actually removing
              the crontab.

So add an alias crontab="crontab -i"

nd

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to