How To Login With A USB Flash Drive Instead Of A Password | Linux Today

How To Login With A USB Flash Drive Instead Of A Password

Written By
A
Anonymous
Feb 8, 2021

pam_usb is a PAM module that provides hardware authentication for Linux using ordinary USB flash drives, SD cards, MMC, etc.

Using this, you’ll be able to login without a password by simply connecting a USB stick or memory card to your computer. This USB authentication also works when running terminal commands that require superuser, you will not be prompted for a password when using sudo for example.

A quick note of caution: With this tutorial, you’re creating a powerful key to open your Linux install wide. It saves you entering your superuser password, but it does the same for anyone with the USB key. Guard it carefully.

A

Anonymous

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.