How to use a USB flash drive as a user password

I tried following this tutorial (Linux authentication login with USB device) (Sorry, I’m new to the forum, so I can’t use a link) in order to password protect my account with a USB stick. But could not get even the first step to work (I am very new to Linux and I am running Ubuntu 20.04)

Hi Damage,

Welcome to our forums.

Please review our guidelines about how to ask for help, and provide us with some details about your issue, so we can help you solving it.

Are you getting any error message while performing the first step? If so, please share it with us. Also note that while in the tutorial the following command is the first step:

$ sudo apt-get install pamusb-tools libpam-usb

You don’t need to actually type the dollar sign ("$"), that just marks the command as to be executed as normal user.