SparkyLinux Forums

Installation & Upgrade => Installation => Topic started by: barfly on February 15, 2020, 01:28:22 PM

Title: how to allow 1 digit passwords on installation
Post by: barfly on February 15, 2020, 01:28:22 PM
Hi- I am new to sparkylinux and have had to abandon the installation as the installer insists on a complex password.  I only ever use a single digit login on my machines at

home; this is the only distribution I have come across that insists on these arbitrary rules on install.

No-one has physical access to my computer except me and I detest unmanageable passwords.

I would like to try sparky as it intrigues me but this is a total non-starter for me.

If I cannot alter this install behaviour I'll stick with Kubuntu.

Can anybody suggest a remedy.  I have tried editing the /etc/pam.d folder files with no success.

Regards, Tony.
Title: Re: how to allow 1 digit passwords on installation
Post by: pavroo on February 15, 2020, 02:00:28 PM
You have two solutions for that:

1. Install Sparky having 6 digits (at least) password as required; after the first login change your password, by the command:
passwd
and root password if needed:
sudo passwd root

2. Running Sparky live, before installation, edit a Calamares user config file:
sudo nano /usr/share/calamares/modules/users.conf
(use different editor than nano if you'd like)
and go to "libpwquality:" option changing:
- minlen=6
to your number of digits, then save the file and run the installer as normal.
Title: Re: how to allow 1 digit passwords on installation
Post by: barfly on February 15, 2020, 02:10:49 PM
Pavroo - thank you for such a prompt response.   Your suggestion 1) is the method I normally use, but the install insisted on 14 digits with a capitals, numeral and sign.

I have been using linux since the very first version of Mandrake, and have never encountered this level of password complexity insistence in an installer-it is baffling to me

why anyone would make this a part of an otherwise simple install-it is certainly not the way to attract the Windows crowd.

I'll try your second suggestion and report back.

Cheers, Tony.
Title: Re: how to allow 1 digit passwords on installation
Post by: lami07 on February 15, 2020, 02:36:36 PM
Quote14 digits with a capitals, numeral and sign
0.o what?? That must be installer bug of some kind. Minimal password length is set 6 characters.
Title: Re: how to allow 1 digit passwords on installation
Post by: barfly on February 15, 2020, 04:20:40 PM
Well, I tried again and now I can't get past the language selection screen, "waiting for modules" and hangs forever.

I downloaded the image again and put it on a different usb stick but the same result, checked the MD5 sum and it's all become too hard.

Until the installer for Sparkylinux is improved I don't want to waste any more time.  A whole day wasted, and I 'aint got that many left.

Cheers to you all and goodbye, Tony.
Title: Re: how to allow 1 digit passwords on installation
Post by: verndog on April 03, 2020, 06:45:29 PM
Quote from: pavroo on February 15, 2020, 02:00:28 PM
You have two solutions for that:

1. Install Sparky having 6 digits (at least) password as required; after the first login change your password, by the command:
passwd
and root password if needed:
sudo passwd root

2. Running Sparky live, before installation, edit a Calamares user config file:
sudo nano /usr/share/calamares/modules/users.conf
(use different editor than nano if you'd like)
and go to "libpwquality:" option changing:
- minlen=6
to your number of digits, then save the file and run the installer as normal.
The above doesn't work.
Tried method ONE. It keeps asking for old method.
Method two is the ideal choice. Except the file your referring to is NOT what Calamares uses. This is the location it uses:
"]/run/live/rootfs/filesystem.squashfs/usr/share/calamares/modules/users.conf", an unfortunately its read only. I
I unsquashed the squashed file and changed the location but can't re-compile it. Whoever creates the efi ISO needs to do this.

EDIT:  The solution for me was to remove "users:conf" file. I tried edit the libpwquality section, and could never get it to work.
Title: Re: how to allow 1 digit passwords on installation
Post by: jerry99 on April 29, 2020, 07:52:23 PM
I had the same problem. The solution (as root) with passwd <user> works perfectly with the latest version as of 2020-04-15
Title: Re: how to allow 1 digit passwords on installation
Post by: pavroo on April 30, 2020, 11:03:11 AM
I changed the Calamares user's password setup to digist numer 4 and quailty to 0 at the Calamares 3.2.23 so the iso 2020.04~dev and any next keep the changes.