Wiki World

User

commands run as root unless otherwise stated.

Set password

passwd <username>

Lock user

passwd -l <username>

Unlock user

passwd -u <username>

Expire user

chage -E0 <username>

Remove expire date

chage -E -1 <username>

Expiry status

chage -l <username>