GithubHelp home page GithubHelp logo

Comments (8)

a-dma avatar a-dma commented on May 29, 2024

it looks like libu2f-host is sad for some reason.

What kind of U2F rules do you have on your system? Is the device (as in /dev/xxx) accessible by your user?

from pam-u2f.

Conobi avatar Conobi commented on May 29, 2024

Thanks for your answer.
If you are talking of udev rules,

I only have these rules writed in /etc/udev/rules.d/70-u2f.rules.
If you are talking about pam rules, i use these rules in /etc/pam.d/su :

# Begin /etc/pam.d/su

# always allow root
auth	  sufficient  pam_rootok.so
#auth	   include     system-auth

# include the default account settings
account   include     system-account

# Set default environment variables for the service user
session   required    pam_env.so

# include system session defaults
session   include     system-session

# End /etc/pam.d/su

# Allow YubiKey auth
auth sufficient pam_u2f.so debug authfile=/etc/u2f_mappings cue
#auth required pam_unix.so use_first_pass
auth include system-auth

My device, /dev/hidraw0 has these permissions:
crw-rw----+ 1 root root 248, 0 15 sept. 14:56 /dev/hidraw0

from pam-u2f.

a-dma avatar a-dma commented on May 29, 2024

that looks alright to me.
Which distribution are you running? Would you mind trying to use u2f-host in verbose mode to perform a test registration?

from pam-u2f.

Conobi avatar Conobi commented on May 29, 2024

I'm using Solus OS 3.0.
How can i use u2f-host in verbose mode with pam-u2f? Or i just do a test with only u2f-host, like register/log in?

from pam-u2f.

a-dma avatar a-dma commented on May 29, 2024

I'm using Solus OS 3.0.
Not familiar with this distro

Yes, what I mean is just trying to do a manual registration/authentication with u2f-host since I suspect there (or better in libu2f-host) is where the problem is. If that fails in the same way trying re-running the u2f-host command as root.

from pam-u2f.

Conobi avatar Conobi commented on May 29, 2024

Using the tutorial on the readme of libu2f-host, it works perfectly, without any error.

from pam-u2f.

a-dma avatar a-dma commented on May 29, 2024

It seems like there is either a configuration error or something in your system is very weird.
JeanPwet is your user name and DestrucThor your host name, correct?

Are you sure you used pamu2fcfg with the right values? If so could you try specifying them in the module explicitly?

from pam-u2f.

simbalion avatar simbalion commented on May 29, 2024

I'm having the same error but with a different output log:

[../util.c:get_devices_from_authfile(200)] Found 1 device(s) for user simba
Please touch the device.
[../util.c:do_authentication(262)] Device max index is 0
[../util.c:do_authentication(288)] Attempting authentication with device number 1
[../util.c:do_authentication(310)] Challenge: { "keyHandle": "***" }
[../util.c:do_authentication(328)] Unable to communicate to the device, authenticator error
[../pam-u2f.c:pam_sm_authenticate(256)] do_authentication returned -2
[../pam-u2f.c:pam_sm_authenticate(275)] done. [Authentication failure]
[sudo] password for simba:

from pam-u2f.

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.