PDA

View Full Version : [all variants] [SOLVED] How to set short password for user (5yr old son)


estevez
October 7th, 2008, 04:21 PM
Hello, after upgrade from drake to hardy and some tweaking its seems that whole family can switch to the new system, but there are still few minor things left... like default password policy.

I had separate accounts for me (the master and maintainer :), my wife and my kids. I need to set short plain password for my sons, just few chars to teach them good habits. 6+ chars is too much for them. How I can change default hardy behavior?

Thank you

estevez
October 7th, 2008, 06:02 PM
solved. just better search through this forum revealed that:

edit in file: /etc/pam.d/common-password

line: password required pam_unix.so nullok obscure md5

to: password required pam_unix.so nullok min=3 md5

is what i need.

sisco311
October 7th, 2008, 06:09 PM
you can set a non secure password, as root:
sudo passwd username

changing(system wide) the lenght of the password is not secure.

estevez
October 7th, 2008, 06:21 PM
thank you for advice. any risk, if only my account is in admin group? for my sons is possibility to change their own password fairly important .-)

sisco311
October 7th, 2008, 06:37 PM
in your case the risks are negligible.
you can read more about security here (http://ubuntuforums.org/showthread.php?t=765421)

EDIT:
Please mark the thread solved by selecting
Mark this thread as solved from the Thread Tools.