help-cfengine
[Top][All Lists]
Advanced

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

Need help with cfengine 2.0.2 editfiles/ReplaceAll


From: Shoemaker, Paul A.
Subject: Need help with cfengine 2.0.2 editfiles/ReplaceAll
Date: Thu, 3 Oct 2002 10:29:39 -0500

Hello!

I am trying to upgrade from 1.6.3 to 2.0.2 of cfengine.  But cfagent
is doing something that has caught me by surprise.

I've got the following coded:
editfiles:
   sparc.!restricted::
      { /etc/shadow
         Inform "true"
         ReplaceAll "^root.*" With "root:VoMhjHORJ/Ops:11856::::::"
      }

This has worked fine under cfengine 1.6.3.

But when I run the 2.0.2 cfagent, with the options -v -q, I get the
following:
Begin editing /etc/shadow
Checking for replace/^root:.*/root:VoMhjHORJ/Ops:11856::::::
cfengine:sixap06w: WARNING: Non-convergent edit ReplaceAll
[root:VoMhjHORJ/Ops:11856::::::] With [^root:.*]
cfengine:sixap06w: Line begins [root:74Q5zDNWiXKx2:11962::::::]
cfengine:sixap06w: Replace contains search string - edit was not done
cfengine:sixap06w: Error editing file /etc/shadow

For some reason the warning appears to be reversing the search string and
the replacement string, and the edit isn't being performed at all.

This is happening on a SPARCstation 20 (sun4m) running Solaris 8.  I built
cfengine 2.0.2 on another sun4m machine running Solaris 6.

Any help with why the ReplaceAll is failing would be appreciated.
Thanks!





reply via email to

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