[sudo-users] sudo comment?

Eurico de Sousa edesousa at bank-banque-canada.ca
Tue May 4 10:24:19 EDT 2010


Hi.
 
Is there any way to have sudo prompt for a comment and have it logged
before using it to become someone else?
 
    sudo -u other_user command
 
Some staff here need to become other users in order to troubleshoot
their problems but there's some audit requirement to log a reason for
doing so (the comment may have to include a ticket number, for example).
 
Thanks.
====================================================================================

La version française suit le texte anglais.

------------------------------------------------------------------------------------

This email may contain privileged and/or confidential information, and the Bank of
Canada does not waive any related rights. Any distribution, use, or copying of this
email or the information it contains by other than the intended recipient is
unauthorized. If you received this email in error please delete it immediately from
your system and notify the sender promptly by email that you have done so. 

------------------------------------------------------------------------------------

Le présent courriel peut contenir de l'information privilégiée ou confidentielle.
La Banque du Canada ne renonce pas aux droits qui s'y rapportent. Toute diffusion,
utilisation ou copie de ce courriel ou des renseignements qu'il contient par une
personne autre que le ou les destinataires désignés est interdite. Si vous recevez
ce courriel par erreur, veuillez le supprimer immédiatement et envoyer sans délai à
l'expéditeur un message électronique pour l'aviser que vous avez éliminé de votre
ordinateur toute copie du courriel reçu.


More information about the sudo-users mailing list