pam_u2f only works when I use PIN after connect #165
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I want to use the key to login on my Linux machine using pam_u2f module.
I have borrowed a nano 5C, and when I connect and run "sudo su" it asks to press button and goes root as expected, but with pico it flashes to touch it and skips to password fallback.
It works after I use something that asks PIN like "ykman fido access verify-pin" command, but every time I reconnect it needs to use PIN again to work.
I tried to change alwaysUv to always false, but it didn't seem to work.
This tenstar rp2350 is using pico-fido2 compiled with some custom device flags to ws2812 works and 16mb be recognized, although, "python pico-fido-tool.py memory" shows total only with 2024kb, with correct flash size of 16mb.
All the data is encrypted in Pico Fido with a hash of your PIN. Without entering the PIN within the current session, the board will remain locked without granting access to any account. This is why it works after you use an app asking for the PIN.
alwaysUvdoesn't affect due to this constraint.In RP2350 the partition for storing data is 2048Kb, regardless of the total flash size, and this is what
memoryreports.I have a similar issue. I understand that a pin must be entered first to unlock de the board, and I have my greetd pam file set to ask for it. The problem is that when first booting, when I click in the regreet login button it goes from red to blue. Reseting the fido sometimes work. After logged in for the first time I can restart greetd or logout and login again and it works as intended. I think it may be related to op issues.
Edit: the expected behavior occurs if I connect pico fido after the system is running, eg: regreet login screen but not if it is plugged while powering computer. Any thoughts?
A timeout of a OS timer?
I think I didn't expressed myself correctly. When it is connected before the boot it doesn't work, unless I unplug and replug after the system is loaded. After that it works fine for sudo for example and even after a logout. If instead I do a manual login using user/password and connecting it work fine too. It just doesn't seem to work if connected o before the boot starts.
After the failure I disconnected the device.
This caught my attention:
/var/run/user/0/pam-u2f-authpendingdoesn't exist.Off-topic, @SirMonteiro, mind sharing the flags or the process you followed to build pifo-fido? I have the same Tenstar RP2350 and I can't manage to get anything on it, I'm new to this microcode world heh
@migue802 I got a working build of pico-fido2 for the Tenstar RP2350. You can download the .uf2 directly from here:
Download (RP2350): https://github.com/zequinha-taveira/pico-fido2-Tenstar-RP2350-firmware/releases/
If you want, I can also explain the steps I used to compile it in case you'd like to build it yourself.
@zequinha-taveira I also have Tenstar RP2350 but I can't download firmware, repo is private. Explain how to build your own firmware.