Disable Expiration
- Use the command
samba-tool user setexpiry USER --noexpiry
- The following shows disabling pesky password expiration for the Administrator
root@dc:~# samba-tool user setexpiry Administrator --noexpiry
Expiry for user 'Administrator' disabled.
root@dc:~#