From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Martin
Richard
Sent: 12 September 2007 23:38
To: [email protected]
Subject: tracking a possible bug

> Hello,
> 
>   I have clients running an installation script. The script is ran as
root (to be able to create the target 
> directory and install the init script) and reads /etc/inittab to get
the default runlevel.  I've had one 
> customer claim that the script _deleted his inittab file_. Which we
would have put under user error.. until we > had 2 other, unrelated
machines, with wiped inittab files and where the script had been used in
the past. We 
> have absolutely no proof our script is related to the inittab file
problem. 

I would suggest splitting out the functionality from your script that
really has to be run as root, and run the rest with no more privileges
that it actually needs. You should not need root privilege just to read
inittab, for example. Write access to /etc and /etc/inittab is normally
reserved for root (you should probably check that on the systems that
you run your script), so if your only access to that file (and
directory) is as an unprivileged user, then it is unlikely to be your
script that is deleting or truncating the file.

I wish you luck. It can pretty frustrating trying to debug a problem
that is difficult/impossible to reproduce. More so if it is not your
code that is causing the problem.

HTH

-- 
Brian Raven 

=========================================
Atos Euronext Market Solutions Disclaimer
=========================================

The information contained in this e-mail is confidential and solely for the 
intended addressee(s). Unauthorised reproduction, disclosure, modification, 
and/or distribution of this email may be unlawful.
If you have received this email in error, please notify the sender immediately 
and delete it from your system. The views expressed in this message do not 
necessarily reflect those of Atos Euronext Market Solutions.

Atos Euronext Market Solutions Limited - Registered in England & Wales with 
registration no. 3962327.  Registered office address at 25 Bank Street London 
E14 5NQ United Kingdom. 
Atos Euronext Market Solutions SAS - Registered in France with registration no. 
425 100 294.  Registered office address at 6/8 Boulevard Haussmann 75009 Paris 
France.

L'information contenue dans cet e-mail est confidentielle et uniquement 
destinee a la (aux) personnes a laquelle (auxquelle(s)) elle est adressee. 
Toute copie, publication ou diffusion de cet email est interdite. Si cet e-mail 
vous parvient par erreur, nous vous prions de bien vouloir prevenir 
l'expediteur immediatement et d'effacer le e-mail et annexes jointes de votre 
systeme. Le contenu de ce message electronique ne represente pas necessairement 
la position ou le point de vue d'Atos Euronext Market Solutions.
Atos Euronext Market Solutions Limited Société de droit anglais, enregistrée au 
Royaume Uni sous le numéro 3962327, dont le siège social se situe 25 Bank 
Street E14 5NQ Londres Royaume Uni.

Atos Euronext Market Solutions SAS, société par actions simplifiée, enregistré 
au registre dui commerce et des sociétés sous le numéro 425 100 294 RCS Paris 
et dont le siège social se situe 6/8 Boulevard Haussmann 75009 Paris France.
=========================================

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to