From: Hustert Klaus-CKH035 (Klaus.Hustert@motorola.com)
Date: Mon Aug 25 2003 - 08:18:39 EDT
Hi,
you can mv the /usr/bin/rm executable to e.g. /usr/bin/rm_org and replace it thru an own script (maybe called rm_my). Than you can using e.g "/usr/bin/rm_org -i $1 ..." in the rm_my script for requesting confirmation.
Create a link like ln -s /usr/bin/rm_my /usr/bin/rm and it should work for you.
Hope it helps,
Klaus
Hi,
I would like to know if its possible to enable any option on HPUX to avoid involuntary uses of rm command.
For example, only the execution after responding a confirmation question, or something else ???
Best regards,
Enrique
_____________________________________________________________
Uni2 Telecomunicaciones, S.A.U.
Aviso legal:
Este mensaje electrónico está dirigido únicamente a la(s) dirección(es) indicadas anteriormente; el carácter confidencial, personal e intransferible del mismo está protegido legalmente. Cualquier revelación, uso o reenvío no autorizado, completo o en parte, está prohibido.
Si ha recibido este mensaje por equivocación, notifíquelo inmediatamente a la persona que lo ha enviado y borre el mensaje original junto con sus ficheros anexos sin leerlo ni grabarlo, total o parcialmente.
Gracias
-- ---> Please post QUESTIONS and SUMMARIES only!! <--- To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only) http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:33 EDT