Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Password length question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
stealthy
Tux's lil' helper
Tux's lil' helper


Joined: 08 Aug 2002
Posts: 118
Location: ONTARIO CANADA

PostPosted: Mon Jan 19, 2015 8:25 pm    Post subject: Password length question Reply with quote

Hello Everyone,

I am trying to configure my system, so that the minimum password length is 8

I tried editing /etc/login.defs and change PASS_MIN_LEN

but that gives me the error

Code:
configuration error - unknown item 'PASS_MIN_LEN' (notify administrator)


Although it seems to do what I intended to do.

Just wondering if there is another way of defining complex passwords..or if I need to do something different, so that I don't get this error.

Any help would be greatly appreciated.

Thanks,
_________________
All your Gentoo are belong to us.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Mon Jan 19, 2015 8:40 pm    Post subject: Re: Password length question Reply with quote

stealthy wrote:
Just wondering if there is another way of defining complex passwords..or if I need to do something different, so that I don't get this error.

stealthy ... assuming you are using pam this is defined in /etc/pam.d/system-auth

Code:
password  required  pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3

... so, a minimum length of 8 chars is already set, and should be enforced by 'passwd' (see: /etc/pam.d/passwd).

HTH & best ... khay
Back to top
View user's profile Send private message
stealthy
Tux's lil' helper
Tux's lil' helper


Joined: 08 Aug 2002
Posts: 118
Location: ONTARIO CANADA

PostPosted: Mon Jan 19, 2015 8:58 pm    Post subject: Password length question Reply with quote

Hello Khayyam,
My /etc/pam.d/system-auth is exactly the way you mentioned.

my /etc/pam.d/passwd has
Code:

auth       sufficient   pam_rootok.so
auth       include      system-auth
account    include      system-auth
password   include      system-auth


What do I need to change in there, so that password policy is enforced. Right now as a regular user, I can still setup a password that is 7 characters long.
_________________
All your Gentoo are belong to us.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Mon Jan 19, 2015 9:38 pm    Post subject: Re: Password length question Reply with quote

stealthy wrote:
What do I need to change in there, so that password policy is enforced. Right now as a regular user, I can still setup a password that is 7 characters long.

stealthy ... I'm not sure what's going on here because as I understand the above system-auth should enforce a minimum length. The 7 char passphrase this was created by root? Can the user do the same and still login?

best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum