Operating System - HP-UX
1833780 Members
2563 Online
110063 Solutions
New Discussion

Re: how to set root password minumum length?

 
Sonny Chee
Advisor

how to set root password minumum length?

Hi,

We have a requirement to set the root password to
a minumum of 15 characters, I've looked all over
and can't find anything on it. I don't want to
do it on all the users, just root. The server is
trusted and running 11i. Any help would be
appreciated. Thanks!


Sonny
Life is too short to spent on solving Unix problems, ask the forum experts.
4 REPLIES 4
Jeff_Traigle
Honored Contributor

Re: how to set root password minumum length?

Can't think of any built-in way to enforce that requirement. You can only control maximum length of the password on an individual basis. The minimum length is controlled by MIN_PASSWORD_LEN in /etc/default/security and applies to all users, including root on trusted systems.
--
Jeff Traigle
Coolmar
Esteemed Contributor

Re: how to set root password minumum length?

Try going into SAM->users and groups and then highlight the root user. I thought you can go in there somewhere and modify the security settings and one of those is the password min and max length. That way you can do it just for root only.

I can't test it here becuase we don't have trusted systems, so this is just from memory.
Mark Nieuwboer
Esteemed Contributor

Re: how to set root password minumum length?

Sonny,

You can't do that because the max password lenght for root is 8 characters.
You can do more but then you can have a lot of problem when you have to log on in single user mode or with other applications.
My experience is when you keep your password under max. 8 characters you have the least problems.

grtz. Mark
Sonny Chee
Advisor

Re: how to set root password minumum length?

Thanks to all who replied, but there is not a good way to do it. We just use a 15 character password and not setting it to a minumum in the security file.

Mark, there is no problem with logging in in
single user mode, I tried it and it works.


Sonny
Life is too short to spent on solving Unix problems, ask the forum experts.