-
Notifications
You must be signed in to change notification settings - Fork 119
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
Permissions on system-wide initial challenge file prevent user-owned processes from authenticating #92
Comments
this was changed around in 1036873 which with your comments obviously isn't the complete solution. Maybe we should try to not change the file permissions when writing out the state. |
In my challenge-response PAM module I copy the ownership of the old copy of the file to the newly created copy. I call |
Yes, something like 155b485 just pushed to a new branch.. @dhgwilliam it'd be great if you where willing to test that branch and see if it fixes your issues |
Based on some very quick testing, this does fix my problem. I'll continue to use this branch today and let you know if anything changes. |
@dhgwilliam: if the permissions are set to By default, |
Is there a workaround for this? Or am I expected to recompile with this commit 155b485? Kubuntu has this issue when using the shared /var/yubico directory per the instructions. Linux Mint seems unaffected using the same configuration. |
Can confirm, this only happens when the
|
The fix in 155b485 is in 2.24. |
Issue #113 but on GNOME Shell 3.20.4 |
So that's not this issue, that issue is about user-owned processes with the state file only being read/write for root whereas this issue was about a bug that was fixed. |
I followed the instructions here for system-wide challenge-response auth and PAM is working fine for logging in and
sudo
, but every time I usesudo
, the file in /var/yubico/david-XXXXX has its permissions reset toroot:david
,0600
. This prevents user-owned processes likei3lock
andgnome-screensaver
from reading the initial challenge and consequently means I'm locked out of my Xwindows session until I change the permissions on that file manually so that my user can read it.The text was updated successfully, but these errors were encountered: