Git Product home page Git Product logo

Comments (1)

ajxn avatar ajxn commented on July 28, 2024

Ubuntu doesn't use lightdm does it?

I have added this to my /etc/pam.d/common-auth to add so that I also need the key to login, not just password. and it works in any program that uses pam and need to authorization (log in).
Notice that I have only copied parts of the file, so you need to edit it, not copy. The comments about u2f should be enough to add this yourself. But choose either sufficent in the beginning, that is commented out, or required in the end.

Also notice that you need to create the u2f_keys files with pamu2fcfg before you can continue.

# pam-auth-update(8) for details.

# here are the per-package modules (the "Primary" block)

# u2f done early.  If right device installed, skipp rest (jxn)
#auth    sufficient			pam_u2f.so cue

auth	[success=3 default=ignore]	pam_fprintd.so max_tries=1 timeout=10 # debug
auth	[success=2 default=ignore]	pam_unix.so nullok try_first_pass
auth	[success=1 default=ignore]	pam_sss.so use_first_pass
# here's the fallback if no module succeeds
auth	requisite			pam_deny.so
# prime the stack with a positive return value if there isn't one already;
# this avoids us returning an error just because nothing sets a success code
# since the modules above will each just jump around
auth	required			pam_permit.so
# and here are more per-package modules (the "Additional" block)
auth	optional			pam_cap.so 
# end of pam-auth-update config

# test u2f
# Create key - pamu2fcfg > ~/.config/Yubico/u2f_keys
# sufficient - may use, set early
# required   - must use. set late
#auth    sufficient			pam_u2f.so cue
auth    required			pam_u2f.so cue

Also recommended to have to keys, so you can just concatenate the output of pamu2fcfg with the second key, like pamu2fcfg >> u2f_keys, or put them in different files, and then just concatenate them together like this: cat u2f_keys.red u2f_keys.black >usf_keys. Then you have the keys there when you need them.

from solo1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.