Now you know how to add a user. It is time to learn about passwd command. Following are common things.
Change user password for rocky
Force password change at next logonCode:passwd rocky
Nullify password (aka delete password)Code:passwd -f rocky
Use above only if you need password less accountCode:passwd -d rocky
Disable account / Lock account
To enable disabled / locked account, assign a new passwordCode:passwd -l rocky
List user password agingCode:passwd rocky
Force aging - minimum number of days before user are allowed to passwordCode:passwd -s rocky
Force aging - maximum number of days a user need to wait between password changeCode:passwd -n 30 rocky
Read man page for more options and infoCode:passwd -x 90 rocky
Code:man 4 passwd man passwd
What's wrong? I hope I am not making you uncomfortable...
Never send a boy to do a mans job.
There are currently 1 users browsing this thread. (0 members and 1 guests)