LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   U2f yubikey - setup process confusing (https://www.linuxquestions.org/questions/linux-newbie-8/u2f-yubikey-setup-process-confusing-4175625155/)

jettjett 03-07-2018 03:27 PM

U2f yubikey - setup process confusing
 
hi. i am trying to setup my fb account for 2 factor authorization using my U2F blue key. for using linux with the key, the following instructions are below. i read something that said something about using a command line. does anyone know how to use a command line to do this? if not, can someone help me to understand the instructions below?

==================================================================================================== ========================
To set up your Linux system for U2F, follow steps 1-5:

1--- If you have a Security Key by Yubico (blue color), U2F is enabled by default (only U2F mode is supported on this product).
2--- Go to https://github.com/Yubico/libu2f-hos...r/70-u2f.rules and
download or create a copy of the file named 70-u2f.rules into the Linux directory:
/etc/udev/rules.d/
3--- If this file is already there, ensure that the content looks like the one provided on github.com/Yubico (link above).
4--- Note: If your version of UDEV is lower than 188,
use the rules at https://github.com/Yubico/libu2f-hos...-old-u2f.rules instead.
5--- Save your file, and then reboot your system.
==================================================================================================== ========================
I am stuck at the 2nd step. i go to that page and i'm assuming that lines "1-56" are the file. if i copy the file (since i don't see a download link for it unless the blue hyperlink at the top is it), how do i put it into a directory called "/etc/udev/rules.d/" ? how do i create that directory?

cheers

syg00 03-07-2018 04:43 PM

Click the "raw" button, then use your browser option to "Save file as ..." - use the name given and make sure the filetype is "plain text" or txt, something like that.
Then you can copy the file to /etc/udev/rules.d/ (which should already exist).

jettjett 03-07-2018 09:10 PM

thanks, but i don't understand........ where is there a "raw" button? also, "can copy the file to /etc/udev/rules.d/ (which should already exist)." where does this already exist - i have no idea.

thanks for trying but i need further clarification.

jettjett 03-07-2018 10:50 PM

ok. i found raw and saved it as a .txt. but i don't understand: /etc/udev/rules.d/ (which should already exist).

where does it exist?
cheers

jettjett 03-07-2018 10:57 PM

when i put that in the directory url, i get a blank page that opens. but i am not able to paste it there..... i don't know if that is where it is suppose to go, but if yes, it won't paste.

syg00 03-08-2018 12:03 AM

You haven't posted your distro (Ubuntu, Mint, ... whatever) or your Desktop Environment (gnome, Cinnamon, ....whatever) so we can only be general.
/etc/udev/rules.d is a directory (think folder) that is owned by root user - him be god, however you visualise that. You can pretend to be god for a short while.
Open a terminal (like an old DOS session in windows) - try the Windows key, bottom left and type in terminal - enter this code, you will be asked for your password.
Code:

find . 70-u2f.rules -exec sudo cp {} /etc/udev/rules.d/ \;
List that dir from your GUI filemanager and see if t file is there - if not post back, and we'll try it slowly.

jettjett 03-08-2018 01:03 AM

thx. debian 9


command: find . 70-u2f.rules -exec sudo cp {} /etc/udev/rules.d/ \;


got: find . 70-u2f.rules -exec sudo cp {} /etc/udev/rules.d/ \;
cp: omitting directory '.'
cp: omitting directory './.cache'
cp: omitting directory './.cache/lxsession'
cp: omitting directory './.cache/lxsession/LXDE'
cp: omitting directory './.cache/chromium'
cp: omitting directory './.cache/chromium/Default'
cp: omitting directory './.cache/Tox'
cp: omitting directory './.cache/Tox/qTox'
cp: omitting directory './.cache/mc'
cp: omitting directory './.cache/mc/mcedit'
cp: omitting directory './.cache/openbox'
cp: omitting directory './.cache/openbox/sessions'
cp: omitting directory './.cache/mozilla'
cp: omitting directory './.cache/mozilla/firefox'
cp: omitting directory './.cache/mozilla/firefox/81ytn9g9.default'
cp: omitting directory './.cache/mozilla/firefox/81ytn9g9.default/safebrowsing'
cp: omitting directory './.cache/mozilla/firefox/81ytn9g9.default/thumbnails'
cp: omitting directory './.cache/mozilla/firefox/81ytn9g9.default/Cache'
cp: omitting directory './.cache/mozilla/firefox/81ytn9g9.default/Cache/B'
cp: omitting directory './.cache/mozilla/firefox/81ytn9g9.default/Cache/2'
cp: omitting directory './.cache/mozilla/firefox/81ytn9g9.default/Cache/4'
cp: omitting directory './.cache/mozilla/firefox/81ytn9g9.default/Cache/5'
cp: omitting directory './.cache/mozilla/firefox/81ytn9g9.default/Cache/E'
cp: omitting directory './.cache/mozilla/firefox/81ytn9g9.default/Cache/C'
cp: omitting directory './.cache/mozilla/firefox/81ytn9g9.default/Cache/0'
cp: omitting directory './.cache/mozilla/firefox/81ytn9g9.default/Cache/9'
cp: omitting directory './.cache/mozilla/firefox/81ytn9g9.default/Cache/F'
cp: omitting directory './.cache/mozilla/firefox/81ytn9g9.default/Cache/7'
cp: omitting directory './.cache/mozilla/firefox/81ytn9g9.default/Cache/A'
cp: omitting directory './.cache/mozilla/firefox/81ytn9g9.default/Cache/8'
cp: omitting directory './.cache/mozilla/firefox/81ytn9g9.default/Cache/D'
cp: omitting directory './.cache/mozilla/firefox/81ytn9g9.default/Cache/6'
cp: omitting directory './.cache/mozilla/firefox/81ytn9g9.default/Cache/3'
cp: omitting directory './.cache/mozilla/firefox/81ytn9g9.default/Cache/1'
cp: omitting directory './.cache/mozilla/firefox/81ytn9g9.default/cache2'
cp: omitting directory './.cache/mozilla/firefox/81ytn9g9.default/cache2/entries'

jettjett 03-08-2018 01:26 AM

i switched where they key was to the hubs where my firewall and browser are - i suspect that is where it should be in the first place, i'm guessing........

output: find . 70-u2f.rules -exec sudo cp {} /etc/udev/rules.d/ \;
cp: -r not specified; omitting directory '.'
cp: -r not specified; omitting directory './tbundle'
cp: -r not specified; omitting directory './tbundle/tor'
cp: -r not specified; omitting directory './tbundle/tor/bin'
cp: -r not specified; omitting directory './tbundle/tor/hs'
cp: -r not specified; omitting directory './tbundle/tor/hs/ssh'
cp: -r not specified; omitting directory './tbundle/tor/data'
cp: -r not specified; omitting directory './tbundle/tor/share'
cp: -r not specified; omitting directory './tbundle/tor/share/man'
cp: -r not specified; omitting directory './tbundle/tor/share/man/man1'
cp: -r not specified; omitting directory './tbundle/tor/share/doc'
cp: -r not specified; omitting directory './tbundle/tor/share/doc/tor'
cp: -r not specified; omitting directory './tbundle/tor/share/tor'
cp: -r not specified; omitting directory './tbundle/tor/etc'
cp: -r not specified; omitting directory './tbundle/tor/etc/tor'
cp: -r not specified; omitting directory './.cache'
find: ‘70-u2f.rules’: No such file or directory

jettjett 03-08-2018 01:28 AM

incidentally, i downloaded a copy of both "old-u2f" rules and the "r/70-u2f"

jettjett 03-08-2018 07:33 PM

any suggestions???

syg00 03-08-2018 08:02 PM

OK, let's see what you actually have on that machine.
Code:

find . -iname "*-u2f*" 2>/dev/null
ls /etc/udev/rules.d


jettjett 03-08-2018 08:27 PM

find . -iname "*-u2f*" 2>/dev/null
./Desktop/70-u2f.rules.txt
./Desktop/70-old-u2f.rules.txt
NAME@NAME:~$ ls /etc/udev/rules.d

syg00 03-08-2018 08:39 PM

OK, let's just copy it over - then make sure it's there, then you should be able to reboot.
Code:

sudo cp ~/Desktop/70-u2f.rules.txt /etc/udev/rules.d/70-u2f.rules
ls /etc/udev/rules.d/


jettjett 03-08-2018 08:52 PM

thx.

~# sudo cp ~/Desktop/70-u2f.rules.txt /etc/udev/rules.d/70-u2f.rules
root@NAME:~# ls /etc/udev/rules.d/

jettjett 03-08-2018 11:17 PM

what's next?


All times are GMT -5. The time now is 06:30 AM.