Operating System - Linux
1753432 Members
4504 Online
108793 Solutions
New Discussion юеВ

Re: setup pasword problem in Linux

 
Kevin_peng
Advisor

setup pasword problem in Linux

1.How to force user to change their temporary password at next time login.

2.How to setup password length is set to six characters for users.
3 REPLIES 3
Ryan Goh
Frequent Advisor

Re: setup pasword problem in Linux

1,2)You can do so with webmin for most of linux distribution to configure these tasks. For Suse, you can use Yast to configure.

2) You canconfigure in PAM using webmin, or Yast in Suse linux, is easy to configure because is GUI based.
Alexander Chuzhoy
Honored Contributor

Re: setup pasword problem in Linux

1. chage -d 0 username will force the "username" to change his password after next successfull login.
2.edit the file /etc/login.defs and edit the value after PASS_MIN_LEN variable.


You didn't mention the OS you work on, I assumed it's RedHat.
Regards.
Ivan Ferreira
Honored Contributor

Re: setup pasword problem in Linux

>>> 1. chage -d 0 username will force the "username" to change his password after next successfull login.

This is correct, and works with mnost linux distro.

>> Edit the file /etc/login.defs and edit the value after PASS_MIN_LEN variable.

This file has not effect anymore, you should use pam cracklib. Edit /etc/pam.d/system-auth and set:

password requisite /lib/security/$ISA/pam_cracklib retry=3 minlen=6
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?