I read some information about using the Nitrokeys and similar u2f devices on FreeBSD posted here. It is crucial to have the Nitrokey rules somewhere in /usr/local/etc/devd/ which I have:
My /usr/local/etc/devd/u2f.conf contains:
and my user is in the group u2f.
And I restarted my devd service.
Still, when running nitropy (pynitrokey v0.10.0) I am getting this warning:
when I run it as root, it runs (but warns about being run as root and tells me to add the devd rules). Any ideas what is going on here?
My /usr/local/etc/devd/u2f.conf contains:
Code:
# Nitrokey 3
notify 100 {
match "system" "USB";
match "subsystem" "DEVICE";
match "type" "ATTACH";
match "vendor" "0x20a0";
match "product" "0x42b2";
action "chgrp u2f /dev/$cdev; chmod g+rw /dev/$cdev";
};
attach 100 {
match "vendor" "0x20a0";
match "product" "0x42b2";
action "chgrp u2f /dev/$device-name; chmod g+rw /dev/$device-name";
};
# Nitrokey 3 Bootloader mode
notify 100 {
match "system" "USB";
match "subsystem" "DEVICE";
match "type" "ATTACH";
match "vendor" "0x20a0";
match "product" "0x42dd";
action "chgrp u2f /dev/$cdev; chmod g+rw /dev/$cdev";
};
attach 100 {
match "vendor" "0x20a0";
match "product" "0x42dd";
action "chgrp u2f /dev/$device-name; chmod g+rw /dev/$device-name";
};
And I restarted my devd service.
Still, when running nitropy (pynitrokey v0.10.0) I am getting this warning:
Code:
Critical error:
An unhandled exception occurred
Exception encountered: PermissionError(13, 'Permission denied')
Last edited by a moderator: