I hate having to enter passwords, and the Librem 5 is configured to make me enter passwords all the time, which is damn annoying! I don’t want any stinkin’ security on my personal spying device!
The first thing that I eliminated is the hardware encryption. I know from bitter experience that having an encrypted harddrive is a recipe for me to lose my data in an emergency, so I got rid of the disk encryption which means one less password to enter when booting the phone.
Here is how I flashed my phone to get rid of LUKS disk encryption:
./scripts/librem5-flash-image --variant plain
I figured that there was no reason to make myself enter a password when issuing a command as sudo
since I am the only person using the phone, so I issued the sudo visudo
command to change my /etc/sudoers
file from:
%sudo ALL=(ALL:ALL) ALL
to:
%sudo ALL=(ALL:ALL) NOPASSWD:ALL
Now it is much more enjoyable to play with my phone without having to always enter stupid passwords in the terminal!
Unfortunately, I couldn’t find a way to do auto login in Phosh. Annoyingly PureOS doesn’t want to allow any passwords shorter than 6 characters long, which means 1000000 (10^6) possible passwords if we limit the password to just numbers. In contrast, Mobian is fine with a password 4 characters long, which would be 10000 (10^4) possibilities. Nobody in Bolivia who finds my phone is going to have any idea what to do with it (including my wife), so why bother with long passwords!
I decided to set the minimum password length to just 1 character, by issuing the command:
sudo nano /etc/pam.d/common-password
Then I changed the lines from:
password [success=2 default=ignore] pam_unix.so sha512
password [success=1 default=ignore] pam_unix.so obscure use_authtok try_first_pass yescrypt
To:
password [success=2 default=ignore] pam_unix.so sha512 minlen=1
password [success=1 default=ignore] pam_unix.so obscure use_authtok try_first_pass yescrypt minlen=1
Then I set the password from the command line to something really short and sweet:
passwd
For some reason, my changes make it impossible to change the password in the Phosh interface under Settings > Users > Password, but who needs a lousy GUI when we have a cool command line to play with?
Having a password 1 character long means that there are only 80 possible passwords, so it should be nice and easy to crack if anyone picks up my phone! However, having to enter one character at the login screen was still taking me too much time. I tried setting minlen=0
, but PAM interpreted that as minlen=6
. Rats!
I wanted to eliminate that annoying login screen all together, but that doesn’t seem to be an option in the Phosh code. It appears that Guido Gunther worked on a setting to disable the lock screen in Phosh, but then he decided to not implement it. Rats again!
However, I found another of Guido’s changes last year that lets me set a lock delay in the L5:
gsettings set org.gnome.desktop.screensaver lock-delay 3600
Now, I can press the Power button to blank the screen and then press it again to bring back the screen and I don’t have to enter any password as long as I blanked the screen within the last hour. Unfortunately, if the phone enters suspend, I still have to enter a password when resuming. Oh well, nothing is perfect, but now my Librem 5 is as insecure as I can make it!