Class ShadowStatements
- java.lang.Object
-
- org.jclouds.scriptbuilder.statements.login.ShadowStatements
-
public class ShadowStatements extends Object
Statements used to manipulate the shadow file
-
-
Constructor Summary
Constructors Constructor Description ShadowStatements()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
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.
-
-