-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Adding a pam configuration file #115
Conversation
all good just need @fufexan to fix nix nix fix pls fix nix nix fix |
Was about to ping but wasn't 100% completely sure if it was just me being me |
also I think trying Don't lock the user out :( |
This is the same approach swaylock and i3lock use. |
On a sidenote, I managed to SIGSEGV hyprlock using my modified login file:
To do this I would press enter on an empty password, then the fingerprint auth will start. Once fprintd times out tho, hyprlock just terminates. Swaylock (yeah, sorry, that's the obvious comparison) will just restart the authentication. Should I open a different issue for that? Again, this is not related to this PR in particular but moreso to using fprintd |
@alba4k what about |
Sorry for deleting, added it as a comment to the suggestion. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
My logic was more like someone forgor 💀 to copy the file. |
oh so in hyprlock, in case the file is not found. That makes sense. |
As a nix user I had to do "security.pam.services.hyprlock = {};" for this to work. |
it's your fault for not fallbacking to su |
@vaxerski looking into that right now. pam_start seems to return 0 regardless of whether the file exists or not, should I just manually check? I'd just leave everything as-is tbh, as that is what every other program would usually do (again, take swaylock as an example). |
why not try regardless if any fail |
ye? |
#115 (comment) |
Because I'd have no idea how to implement that in the existing code, having never worked with pam myself :P |
ping @PaideiaDilemma not me ahah |
I swear to god amma revert this, I added the pam file and yet STILL can't login |
why did you make the pam file 600 ffs |
added su fallback in f9fe60c |
Can we make the su fallback optional @vaxerski? I'm trying to configure hyprlock to not try and use fprintd, despite the fact that my I'm not convinced that having |
When you input a wrong password you get prompted for fingerprint but that likely has nothing to do with your su, rather with your hyprlock config I believe su is only used when hyprlock can not be used, not when it fails to authenticate |
I believed that to be the case as well, but fprint is not in my PAM config in
Neither of these errors occur if I just input the correct password. I haven't looked at the code, but based on this, it seems like it uses Fortunately I have root user disabled anyways so I can just remove fingerprint auth from NOTE: I'm only on version 2, this may work differently on version 3, v3 has only just been put in nixpkgs so I'll be able to test this tomorrow probably. |
Guys the latest git version does not have a su fallback anymore. You can specify the pam module used by hyprlock in the config. Check the wiki :) |
|
really? no fallback for me, I'm getting faillocks like intended. |
It is, but not at time of authentication, but at startup.
|
* fix: switch existing workspaces * feat: add wlogout * fix: waybar battery states now have "good" * feat: enable udiskie service and indicator * refactor: simplify bluetoothToggle * refactor: drop gnome-settings from dbus packages * fix: enable hyprlock pam hyprwm/hyprlock#115 (comment) * refactor: improve hyprlock * feat: replace mako with swaync * style: make waybar appearance more cohesive * fix: correct path to swappy config and sane font defaults * chore: drop gBar * chore: drop walker * chore: drop mako * refactor: put all hyprland components in discrete directories * feat: enable udevil/devmon automounting * chore: update flake.lock
This pull request would make hyprlock use it's own pam configuration file instead of the
su
oneThis allows the user to include random pam services into it without touching stuff required by other programs.
By default, this just includes the
/etc/pam.d/login
configuration, which contains, by default:Basically just asks for a password.
Creating a custom pam configuration is exactly what #4 is asking for, and that issue is therefore fixed by this PR
On a sidenote, I'm not really sure about this line in
CMakeLists.txt
:Is this the best way to do that? I'm not sure if using an absolute path is the best approach, but I didn't find anything better. Of course it can still be modified by using
DESTDIR