help-cfengine
[Top][All Lists]
Advanced

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

How to Edit /etc/shadow file to add Password entry


From: Garrett, Matt M SITI-ITDIEEE
Subject: How to Edit /etc/shadow file to add Password entry
Date: Thu, 22 May 2003 15:26:47 +0100

Folks

I have been trying to use cfengine 2.0.6 to edit the Solaris /etc/shadow file 
for root password

I have the following in my cfagent.conf

editfiles:

        solaris::
        { /etc/shadow.mg
               ReplaceAll "^root:.*" With "root:NEWROOTSHADOW:6445:::::"
        }


This is the error message that I am getting from cfrun

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

cfengine:HOSTNAME: WARNING: Non-convergent edit operation ReplaceAll 
[root:NEWROOTSHADOW:6445:::::] With [^root:.*]
cfengine:HOSTNAME: Line begins [root:OLDROOTSHADOW:6445::::::]
cfengine:HOSTNAME: Replacement matches search string and will thus replace 
every time - edit was not done
cfengine:HOSTNAME: Error editing file /etc/shadow.mg
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Any suggestions on what I am doing wrong.

Thanks

Matt

Matthew Garrett
Unix System Support
Shell Information Technology International Limited
Seafield House, North Anderson Drive, Aberdeen AB15 6GZ, United Kingdom

Tel: +44 (0)1224 81 8373 Other Tel: Internal 630 8373
Email: Matt.M.Garrett@is.shell.com
Internet: http://www.shell.com




reply via email to

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