Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: miomiomio on October 02, 2009, 05:58:33 PM

Title: change minimum password length
Post by: miomiomio on October 02, 2009, 05:58:33 PM
hi

the sme server user creation required to insert a 7 ch password.

how can change this value?

my net is very small and security is not a my priority.

I would can insert password of 2 character

thanks
Title: Re: change minimum password length
Post by: Stefano on October 02, 2009, 07:31:28 PM
welcome here

in short: you can't.. i suggest you to search the forums to find more info
Title: Re: change minimum password length
Post by: idp_qbn on October 02, 2009, 09:29:50 PM
I have not found a way of doing this in SME: something, somewhere prevents this.
BUT
You can log on at the console (or using a terminal program from your PC) and reset the password for your users directly, one at a time. eg to set the password for user "freddy"
Code: [Select]
passwd freddyYou can use a shorter password at this point.

However, you should heed the warnings about security - if you have weaker passwords you should have stronger physical security. We never think our data is valuable until we have to replace it.

Cheers
Ian
Title: Re: change minimum password length
Post by: byte on October 02, 2009, 10:33:47 PM
You can log on at the console (or using a terminal program from your PC) and reset the password for your users directly, one at a time. eg to set the password for user "freddy"
Code: [Select]
passwd freddy

Not recommended and will break other features. If you really have to decrease security just follow:

Password strength (http://wiki.contribs.org/SME_Server:Documentation:FAQ#Password_Strength_Checking)

and set to none then use aaaaaaa as a password but again and as said if you value your data take action now and enforce strong passwords rather than wait for the event.
Title: Re: change minimum password length
Post by: cactus on October 02, 2009, 11:46:30 PM
the sme server user creation required to insert a 7 ch password.

how can change this value?
You can not as some of the packages that are used on SME Server (IIRC it might be samba) use a minimal password length, therefore the lowest length is 7. Please follow other posters advice and lower password stregth settings and use a easy password.
Title: Re: change minimum password length
Post by: pmceache on October 03, 2009, 04:44:22 AM
This is not recomended but I have changed this on my server by altering the file :
/usr/lib/perl5/site_perl/esmith/FormMagic on line 789.  Change the 7 to a 5 & "> 6" to "> 4", save the file & give it a try. This worked for me.

sub validate_password
{
    my ($fm,$strength,$pass) =3D @_;

    use Crypt::Cracklib;

    my $reason;

    if ($strength eq "none") {
        return $fm->localise("Passwords must be at least 7 characters =
long") unless (length($pass) > 6);
        return "OK";
    }
Title: Re: change minimum password length
Post by: janet on October 03, 2009, 05:37:58 AM
pmceache

Quote
This is not recomended but I have changed this on my server by altering the file :
/usr/lib/perl5/site_perl/esmith/FormMagic on line 789.

Which will be overwritten on future upgrades, so you will need to reconfigure this after such an upgrade.
Title: Re: change minimum password length
Post by: miomiomio on October 03, 2009, 11:44:35 AM
thanks a lot!!!!!!!!!!

On Monday i'll try it

you are my safety!!
Title: Re: change minimum password length
Post by: elmarconi on October 06, 2009, 11:11:17 AM
pmceache

Which will be overwritten on future upgrades, so you will need to reconfigure this after such an upgrade.
Title: Re: change minimum password length
Post by: elmarconi on October 11, 2009, 11:03:32 PM
Oops, noticed posting failure above, anyway:
http://forums.contribs.org/index.php/topic,43318.msg206077.html#msg206077

If anyone can shine a light why we need 7 as a minimum, which things will be broken if we use 6, then I would be most gratefull. So far, no-one has.
Title: Re: change minimum password length
Post by: janet on October 12, 2009, 02:29:15 AM
elmarconi

Quote
If anyone can shine a light why we need 7 as a minimum

The designers wanted a secure password and 7 characters was statistically more secure than 6 !

Quote
....which things will be broken if we use 6, then I would be most gratefull. So far, no-one has.

Search forums, devinfo mail list and bugzilla for numerous discussions and the answers you say "no-one has yet given". IIRC  the pam module requires minimum 6 characters.

Keep in mind that the designers have specified 7 characters as a "sme server minimum design criteria", so if you choose to configure your system outside these parameters  one day in the future your server may break and you will need to change all your passwords anyway.
Title: Re: change minimum password length
Post by: janet on October 12, 2009, 08:58:02 AM
elmarconi

Here's one thread with answers, there are many more if you look
Please use advanced search on password for effective results
http://forums.contribs.org/index.php/topic,43261.msg205649.html#msg205649
Make sure you read right to the end

Title: Re: change minimum password length
Post by: elmarconi on October 12, 2009, 10:44:00 AM
The designers wanted a secure password and 7 characters was statistically more secure than 6 !

Search forums, devinfo mail list and bugzilla for numerous discussions and the answers you say "no-one has yet given". IIRC  the pam module requires minimum 6 characters.

Keep in mind that the designers have specified 7 characters as a "sme server minimum design criteria", so if you choose to configure your system outside these parameters  one day in the future your server may break and you will need to change all your passwords anyway.

mary, thanks for answers. They light up my day!

I am aware of the risks, I wondered why there is a reason to go above the min. of 6, as PAM sets this minimum. As password strength for users and ibays is also templated, (setprop passwordstrength) I've asked for a custom property minPasswordlength. If you allow passwordstrength=none why not minPasswordlength=6?
Title: Re: change minimum password length
Post by: janet on October 12, 2009, 11:03:50 AM
elmarconi

Forgive me, but I'm constantly dumbstruck by the way people overlook or ignore the answer when it is given to them.
Didn't I just answer you with this statement ?

"The designers wanted a secure password and 7 characters was statistically more secure than 6 !"
Title: Re: change minimum password length
Post by: elmarconi on October 12, 2009, 11:25:53 AM
Maybe my English isn't as good as I think it is...

I answered:

mary, thanks for answers. They light up my day!

I wondered ...

That is written in the past. It was to explain/summarize the things mentioned in the thread you referred to. As you can see i was also involved there.

To make things clear: I wondered means I do not wonder anymore.

Thanks again. 
Title: Re: change minimum password length
Post by: janet on October 12, 2009, 11:49:06 AM
elmarconi

No worries.
I read it as "I was still wondering", as in "I wondered a few moments ago", eg when you typed the last post.

English grammar and tense etc can be tricky even for those with English as a native first language.
Title: Re: change minimum password length
Post by: thoriq on January 05, 2011, 09:55:24 AM
pmceache

Which will be overwritten on future upgrades, so you will need to reconfigure this after such an upgrade.

tks it's work