LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   increasing password length... (https://www.linuxquestions.org/questions/solaris-opensolaris-20/increasing-password-length-346661/)

jsheffie 07-25-2005 03:44 PM

increasing password length...
 
Anyone know how to increase the accepted password length in Solaris 9? I tried the /etc/default/passwd deal to increase from default to my desired amount (>twelve)
It didn't do the trick.

Are there other things I can try without ripping apart the system?

Thanks

jlliagre 07-25-2005 05:27 PM

You can't as long as you use the standard unix crypt algorithm, which pick the first 8 letters of the password to build its hash.

To change, either use a different backend for authenticating users (e.g. ldap) or replace the algorithm used to encrypt /etc/shadow password fields by setting CRYPT_DEFAULT=X in /etc/security/policy.conf
X=1 is for linux/bsd compatibility
X=2a is for blowfish
X=md5 is for ... md5

As all this is plugin based, you can even write your own plugin that demand say 32 minimal password length, and add it to the /etc/security/crypt.conf file ;)

jsheffie 07-26-2005 07:54 AM

Thanks,

I went into thepolicy.conf file and chenged these two lines
FROM: #CRYPT_ALGORITHMS_DEPRECATE=__unix__
CRYPT_DEFAULT=__unix__

TO: (uncomment) CRYPT_ALGORITHMS_DEPRECATE=__unix__
CRYPT_DEFAULT=__2a__


Now when I attempt to change password I receive a segmentation fault.

jlliagre 07-26-2005 08:03 AM

__2a__ is wrong, its 2a.

jsheffie 07-26-2005 08:59 AM

thanks, that worked


All times are GMT -5. The time now is 09:18 AM.