I tried to change a Linux password to "sitonapotatopanotis" and got this error: BAD PASSWORD: is a palindrome
Why does this rule exist?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityThe manpage
for pam_cracklib
(responsible for password strength checking) does not specify why this is done:
The strength checks works in the following manner: at first the Cracklib routine is
called to check if the password is part of a dictionary; if this is not the case an
additional set of strength checks is done. These checks are:
Palindrome
Is the new password a palindrome?
However, it's not difficult to imagine that there are some password cracking softwares that try palindromes.
I would not recommend using such a password but it's up to you evaluate what security trade-offs you're comfortable with making (you could use sudo
or root
account to change the password and it will allow you to change it to whatever you want).
Because a 20-character palindromic password is only as secure as a 10-character password -- there's essentially no extra entropy in the last 10 characters. So you're getting a false sense of security from having a long password.
sitonapotatopanotis
probably significantly less entropic than a standard 10 letter password made out of English words. Grammatically correct palindormes are very rare. It would be about as secure if you made a palindrome out of 10 random characters mwiovqfbzczbfqvoiwm
, or if you just took words and made the palindrome part nonsense doctorwormrowrotcod
. Also it adds a little more than a bit of entropy (you could vary how you do the palindrome; e.g., doctorwormrowrotcod
or doctorwormmrowrotcod
or doctorotcodwormmrowr
, etc. But in general palindromes are a bad idea in pw.
Mar 2, 2012 at 21:03
People are simply more likely to choose "racecar" as their password cause they like it. So those words are high up on all wordlists (which are used before any brute-forcing). And it's simpler to check against all palindromes than to maintain a list of palindromes in the password checking library.
Some passwords are great and some are really bad.
We use certain factors to judge the quality of a password. Like length or what different characters are used.
For some passwords, these factors become less relevant or not relevant at all.
Like, this is a great password:
v10H73nqMQPkbUvTLOPyKBg4KnkUjWgF
This one, not so much:
acbaacbacaabcabbbaaabcaccbbbaaac
Even though it has the same length, if the same password rules apply and you brute-force it, the second password will be tried a lot sooner than the first password.
Let's have a look at this one:
qwertyuiopasdfghjklzxcvbnm123456
Now, we're rollin' with a serious password! Only that it's almost the worst possible password ever because all letters are used in the same pattern as they appear on a very popular keyboard type.
Someone might look at that password and think it's super awesome because he chooses it under false assumptions (length being most important for a password).
The same could be said for palindromes. First of all, they give a false feeling of security (as Mike notes) because their length is increased by simply duplicating all letters. But the real problem with them is that they are easy to remember and somewhat of a commodity.
The easy way to set trivial passwords, even if it's a single character, it is by using root user to set the password.
pam_cracklib
could answer this. I tried looking at themanpage
and did a quick web search but no luck.amanaplanpanama
,sitonapotatopanotis
,tacocat
<- this last one is a very frequent card in Exploding Kittens).