Class ShadowStatements
java.lang.Object
org.jclouds.scriptbuilder.statements.login.ShadowStatements
Statements used to manipulate the shadow file
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresetLoginUserPasswordTo
(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.
-
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.
-