[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: virtualbox

Euh... :wq! Permet d'écrire dans sudoers sans changer les droits au préalable...

Une option pratique de vi le "!" : )

-----Original Message-----
From: Stephane Bortzmeyer [mailto:stephane@sources.org] 
Sent: samedi 3 mai 2008 21:54
To: Gilles Mocellin
Cc: debian-user-french@lists.debian.org
Subject: Re: virtualbox

On Mon, Apr 28, 2008 at 11:06:25PM +0200,
 Gilles Mocellin <gilles.mocellin@free.fr> wrote 
 a message of 65 lines which said:

> visudo, ça ne fait qu'un vi sur /etc/sudoers, en s'assurant que
> personne d'autre ne l'édite en même temps.

Et surtout, surtout, visudo vérifie que la syntaxe du fichier est
correcte, *avant* de l'installer. Sinon, il n'y aurait aucune
récupération possible, puiqu'on ne pourrait plus utiliser sudo !

Heureusement que /etc/sudoers ne peut pas s'éditer « comme ça » avec

% sudo visudo
>>> sudoers file: syntax error, line 20 <<<
What now? 
Options are:
  (e)dit sudoers file again
  e(x)it without saving changes to sudoers file
  (Q)uit and save changes to sudoers file (DANGER!)

Lisez la FAQ de la liste avant de poser une question :
Vous pouvez aussi ajouter le mot ``spam'' dans vos champs "From" et

To UNSUBSCRIBE, email to debian-user-french-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

This mail has originated outside your organization, either from an external partner or the Global Internet.
Keep this in mind if you answer this message.

The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other then the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.

Reply to: