Class ShadowStatements

java.lang.Object
org.jclouds.scriptbuilder.statements.login.ShadowStatements

public class ShadowStatements extends Object
Statements used to manipulate the shadow file
  • Constructor Details

    • ShadowStatements

      public ShadowStatements()
  • Method Details

    • resetLoginUserPasswordTo

      public static ReplaceShadowPasswordEntryOfLoginUser resetLoginUserPasswordTo(com.google.common.base.Function<String,String> cryptFunction, String password)
      note must be run as root, and will either reset the root password, or whoever sudoed to root.