System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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.