Minimum Password Length

Asked by Tony on 2012-06-01

Running ubuntu desktop 12.04 need to modify minimum paasword length. This is normally done in the /etc/login.def but Ubuntu of course changed this to the /etc/pam.d/common-password but the line that I need to modify is not there. any ideas?

password required nullok obscure min=4 max=8 md5

Question information

English Edit question
Ubuntu pam Edit question
No assignee Edit question
Last query:
Last reply:

This question was reopened

  • 2012-06-04 by Tony
wojox (wojox) said : #1

You should need /etc/pam.d/login

Sam_ (and-sam) said : #2

The line in your entry referes to 10.04.

12.04 structure is there under 'Password Policy'.

Tony (tdegouw36) said : #3

Thanks Sam_, that solved my question.

Tony (tdegouw36) said : #4

@ Sam_(an-sam) Had a chance to try this today and it never changed the default minimum password from 6 to new set value ie 8.

any sugestions. meaning I can still create a password that only has 8 characters. I need to be able to change this.

Sam_ (and-sam) said : #5

> can still create a password that only has 8 characters

If it's set to min=8 then 8 would be expected as minimum value.
If it's set to min=10 I'd expect it would accept no less than 10.

Tony (tdegouw36) said : #6

You would think that that would be the case but when I set the min=8 I can still create a password with only 6 characters. not sure why it is doing this

Sam_ (and-sam) said : #7

Not sure if pam_auth_update has something to do there. In case report a bug if it doesn't work as expected.

Can you help with this problem?

Provide an answer of your own, or ask Tony for more information if necessary.

To post a message you must log in.