mirror of
https://github.com/QubesOS/qubes-doc.git
synced 2025-02-26 17:51:18 -05:00
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:
parent
a60aafc111
commit
ee09e47249
@ -63,7 +63,7 @@ To use this mode you need:
|
|||||||
|
|
||||||
challenge=`head -c64 /dev/urandom | xxd -c 64 -ps`
|
challenge=`head -c64 /dev/urandom | xxd -c 64 -ps`
|
||||||
# You may need to adjust slot number and USB VM name here
|
# 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 ' '`
|
correct_response=`echo $challenge | xxd -r -ps | openssl dgst -sha1 -macopt hexkey:$key -mac HMAC -r | cut -f1 -d ' '`
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user