YubiKey: one more fix for lightdm

Use root because user is not given access to the device before local X session
is started (which is done in VM after dom0 user logs in).
This commit is contained in:
Marek Marczykowski-Górecki 2015-06-19 09:07:09 +02:00
parent a60aafc111
commit ee09e47249

View File

@ -63,7 +63,7 @@ To use this mode you need:
challenge=`head -c64 /dev/urandom | xxd -c 64 -ps`
# You may need to adjust slot number and USB VM name here
response=`qvm-run --nogui -p sys-usb "ykchalresp -2 -x $challenge"`
response=`qvm-run -u root --nogui -p sys-usb "ykchalresp -2 -x $challenge"`
correct_response=`echo $challenge | xxd -r -ps | openssl dgst -sha1 -macopt hexkey:$key -mac HMAC -r | cut -f1 -d ' '`