Managing Root Passwords With CFEngine

From Kyle's Wiki
Jump to: navigation, search

control:
        rootpassword = ( "root:$6$YOURHASH:0:99999:7:::" )

editfiles:
        { /etc/shadow
          BeginGroupIfNoSuchLine "$(rootpassword)"
           DeleteLinesStarting 'root:'
           PrependIfNoSuchLine "$(rootpassword)"
          EndGroup
          }

Personal tools
Namespaces

Variants
Actions
Efforts
Toolbox
Meta