Install
Fedora
Note
Should already be present
sudo dnf install pcsc-lite
Configure
Polkit
You need to add a polkit rule /etc/polkit-1/rules.d/99-pcscd.rules
, to allow the users of the smartcard
group access to the smart card
polkit.addRule(function (action, subject) {
if (
action.id == "org.debian.pcsc-lite.access_card" &&
subject.isInGroup("smartcard")
) {
return polkit.Result.YES;
}
});
polkit.addRule(function (action, subject) {
if (
action.id == "org.debian.pcsc-lite.access_pcsc" &&
subject.isInGroup("smartcard")
) {
return polkit.Result.YES;
}
});
Restart the polkit service
sudo systemctl restart polkit.service
Create the group
sudo groupadd smartcard
Add your user to the group
sudo usermod -aG smartcard username
Replace
username
: Your username
Restart your login session
Enable
sudo systemctl enable pcscd
Start
sudo systemctl start pcscd