Class ShadowStatements


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

      • ShadowStatements

        public ShadowStatements()
    • 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.