# Usermanagement

# Important Commands

Unlock Useraccount

```bash
allssh sudo faillock --user admin --reset
```

Reset Password

```bash
read -p "Username: " NCLI_USER; read -s -p "Password: " NCLI_PASS; echo; ncli user reset-password user-name="$NCLI_USER" password="$NCLI_PASS"
```

##### Password Expiry

Show aging information

```bash
chage -l <USER>
```

Change Password expiry:

```bash
hostssh 'chage -I -1 -m 1 -M 99999 -E -1 root'
```