LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-07-2018, 03:27 PM   #1
jettjett
Member
 
Registered: Feb 2018
Posts: 40

Rep: Reputation: Disabled
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
 
Old 03-07-2018, 04:43 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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).
 
Old 03-07-2018, 09:10 PM   #3
jettjett
Member
 
Registered: Feb 2018
Posts: 40

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-07-2018, 10:50 PM   #4
jettjett
Member
 
Registered: Feb 2018
Posts: 40

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-07-2018, 10:57 PM   #5
jettjett
Member
 
Registered: Feb 2018
Posts: 40

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-08-2018, 12:03 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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.
 
Old 03-08-2018, 01:03 AM   #7
jettjett
Member
 
Registered: Feb 2018
Posts: 40

Original Poster
Rep: Reputation: Disabled
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'
 
Old 03-08-2018, 01:26 AM   #8
jettjett
Member
 
Registered: Feb 2018
Posts: 40

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-08-2018, 01:28 AM   #9
jettjett
Member
 
Registered: Feb 2018
Posts: 40

Original Poster
Rep: Reputation: Disabled
incidentally, i downloaded a copy of both "old-u2f" rules and the "r/70-u2f"
 
Old 03-08-2018, 07:33 PM   #10
jettjett
Member
 
Registered: Feb 2018
Posts: 40

Original Poster
Rep: Reputation: Disabled
any suggestions???
 
Old 03-08-2018, 08:02 PM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
OK, let's see what you actually have on that machine.
Code:
find . -iname "*-u2f*" 2>/dev/null
ls /etc/udev/rules.d
 
Old 03-08-2018, 08:27 PM   #12
jettjett
Member
 
Registered: Feb 2018
Posts: 40

Original Poster
Rep: Reputation: Disabled
find . -iname "*-u2f*" 2>/dev/null
./Desktop/70-u2f.rules.txt
./Desktop/70-old-u2f.rules.txt
NAME@NAME:~$ ls /etc/udev/rules.d
 
Old 03-08-2018, 08:39 PM   #13
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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/
 
Old 03-08-2018, 08:52 PM   #14
jettjett
Member
 
Registered: Feb 2018
Posts: 40

Original Poster
Rep: Reputation: Disabled
thx.

~# sudo cp ~/Desktop/70-u2f.rules.txt /etc/udev/rules.d/70-u2f.rules
root@NAME:~# ls /etc/udev/rules.d/
 
Old 03-08-2018, 11:17 PM   #15
jettjett
Member
 
Registered: Feb 2018
Posts: 40

Original Poster
Rep: Reputation: Disabled
what's next?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: GitHub Improves Two-Factor Security With FIDO U2F LXer Syndicated Linux News 0 10-01-2015 03:12 PM
YubiKey and Slackware Geremia Slackware 4 07-26-2014 01:22 PM
LXer: Howto enroll and use a Yubikey with privacyIDEA LXer Syndicated Linux News 0 05-14-2014 01:20 AM
LXer: How To Do Mass Enrolling Of Yubikey With LinOTP LXer Syndicated Linux News 0 03-06-2013 10:01 PM
[SOLVED] Yubikey, su and /usr/bin/kupdateapplet boblikeslinux Linux - Security 3 06-17-2010 01:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration