-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script not running on arch linux #41
Comments
Same behavior for me. I have not even noticed that before since I only use duress to have 2 login passwords |
The same bug on Ubuntu 22.04.1. Duress password works, but no script is executed.
Script itself is working, if started from command line. I use debug build, but no debug messages or logs can be found... |
I'll give this a shot; will spin up a 22.04.1 to try and reproduce and/or look into Arch. I'm less experienced with arch but if I can reproduce the issue in Ubuntu that may resolve it in Arch as well; either way will try to reproduce/keep it open until resolved. |
@zhum, I spun up a fresh version of ubuntu server and was unable to reproduce the behavior you're describing. Couple questions:
@bleck9999 I'm getting an arch distro up to see if I can reproduce your issue with the arch guide that's currently in the repo @DusanLesan, what distro are you using and/or is it headless or does it have a desktop environment? |
@nuvious I use Arch with dwm window manager. |
Those appear to just be warnings. Looks like from what yoh screenshotted that the compilation succeeded. |
Sorry for delay. I've checked it on my another laptop with ubuntu 22.04 and it work well there. But on my first laptop I still see strange situation: I can authenticate with pam_duress, but the script is not executed and I cannot see any records in the log. Now I can see only such records:
I have more complicated pam config here:
And yes, here I've tried to use non-cached password for the script (re-signed it and tried). |
@zhum, interesting behavior. From the debug output it looks like pam_ccreds.so is succeeding potentially somehow. Have you tried explicitly clearing the cache for that? I'm unfamiliar with pam_sss/pam_ccreds but initial googling suggests maybe a cache in In any case with one Ubuntu 22.04.01 laptop working with expected behavior I'm not sure this would be a module specific issue and may just require some more configuration tweaking. Try putting pam_duress underneath pam_unix.so directly if you haven't yet; I'm unsure if that would break any use of cached credenitals if your ldap/kerberos server is unreachable but it would make pam_duress the module immediately following pam_unix which if an alternate password was being used then it would skip past all the credential caching modules and authenticate the user while also running the pam-duress specific scripts. |
Cool! Deletion of |
I had a same issue, but i didn't even have
As we see in source code, the module use So, using solution from here, i just replace |
Closing this issue with thanks to @5unr153 and @DusanLesan! |
I have set up pam_duress, but when a duress password is used it doesn't seem to run the script and just logs in without doing anything.
Using an incorrect (non-duress) password still fails to log in at all, but no input causes the script to actually run. I have tried putting the script in /etc/duress.d instead of ~/.duress and using a non-outputting check (eg touching a file in /tmp/) with the same result.
The text was updated successfully, but these errors were encountered: