You can set or reset account or terminal lock flags using SAM. Refer to the sam(1M) man page or use SAM to set the flags.