help-cfengine
[Top][All Lists]
Advanced

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

RE: Deleting lines in a file from configuration files with editfiles


From: Martin, Jason H
Subject: RE: Deleting lines in a file from configuration files with editfiles
Date: Thu, 15 Dec 2005 07:54:58 -0800

I believe the authorized_keys file supports comments -- you could have
CFE comment out the offending line.

-Jason Martin

> -----Original Message-----
> From: 
> help-cfengine-bounces+jason.h.martin=cingular.com@gnu.org 
> [mailto:help-cfengine-bounces+jason.h.martin=cingular.com@gnu.
> org] On Behalf Of Berthold Cogel
> Sent: Thursday, December 15, 2005 4:28 AM
> To: help-cfengine
> Subject: Deleting lines in a file from configuration files 
> with editfiles
> 
> 
> Hello!
> 
> I'm looking for a method to delete lines that I can not 
> describe with a 
> string or a regex in a cfengine script.
> 
> For example:
> 
> I want to edit root's authorized_keys file. I want to distribute ssh 
> public keys with cfengine. It is not a problem to collect the 
> keys and 
> append them to authorized_keys. But I would also like to 
> revoke keys by 
> distributing them in a single file.
> 
> I need something like 'DeleteLinesMatchingFromFile', 
> 'DeleteLinesContainingFileItems' or 'Delete "ThisLine".
> 
> Of course I can rebuild the file from scratch with cfengine. 
> But there 
> are situations where I don't want to do this.
> 
> Regards,
> 
> Berthold
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org 
> http://lists.gnu.org/mailman/listinfo/help-> cfengine
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]