[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Allowing weak passwords



Or, logon as root.
Enter passwd username (where username is the name of your user).
Enter anything as a password (including nothing), ignore the warnings.

On Fri, 17 Dec 1999, Oleg Krivosheev wrote:

> On Fri, 17 Dec 1999, Dave Sherohman wrote:
> 
> > Ben Collins said:
> > > Edit /etc/login.defs and modify the minimum password length config.
> > 
> > That allows _short_ passwords, but not _weak_ ones.
> > 
> > After changing it to 1, I just had the following exchange with passwd:
> > 
> > Enter the new password (minimum of 1, maximum of 8 characters)
> > Please use a combination of upper and lower case letters and numbers.
> > New password: a
> > Bad password: a palindrome.  Try again.
> > New password: abc
> > Bad password: too simple.  Try again.
> > 
> > How do I disable those checks?
> > 
> 
> add user as usual,compile code below with your "short" passwd
> gcc a.c -lcrypt
> 
> and the manually edit /etc/passwd with output
> 
> #include <crypt.h>
> #include <stdio.h>
> 
> int
> main( void ) {
> 
>   printf("%s\n",crypt("superpasswd","iQ"));
> 
>   return 0;
> }
> 
> 
> OK
> 
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
> 


Reply to: