Linux User Management

root's picture

USE THESE COMMANDS AT YOUR OWN RISK. IF YOU DON'T UNDERSTAND WHAT THEY DO, DO NOT USE THEM AND GO TO MAN PAGES!

List/reset unsuccessful logins count:

[root@linux ~]# pam_tally --user blah
User blah	(539)	has 20
[root@linux ~]# pam_tally --user blah --reset
User blah	(539)	had 20
[root@linux ~]# pam_tally --user blah
User blah	(539)	has 0

Enforce password change on first login:

[root@linux ~]# chage -d 0 blah

Thou shalt not steal!

If you want to use this information on your own website, please remember: by doing copy/paste entirely it is always stealing and you should be ashamed of yourself! Have at least the decency to create your own text and comments and run the commands on your own servers and provide your output, not what I did!

Or at least link back to this website.

Recent content

root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root