Operating System - HP-UX
1753779 Members
7499 Online
108799 Solutions
New Discussion

sudo maximum password length

 
PamelaJThrasher
Regular Advisor

sudo maximum password length

Hello-
I have sudo version 1.6.8p12 installed on my 11.31 (itanium) server. It seems that sudo has a maximum password length of 8 characters. Is this configurable?
1 REPLY 1
Viktor Balogh
Honored Contributor

Re: sudo maximum password length

> "It seems that sudo has a maximum password length of 8 characters."

It is not sudo-related, it's system related. If you have a trusted system you can set longer passwords.

For setting the system-wide minimum length, change the corresponding parameter in the file /etc/default/security

# grep -i length /etc/default/security
# Minimum length of NEW passwords.
MIN_PASSWORD_LENGTH=8

Passwords must contain at least N characters. For untrusted systems, N can be any value from 6 to 8. For trusted systems, N can be any value from 6 to 80.
****
Unix operates with beer.