-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
pam_mount: do not re-prompt for password #49896
Conversation
Success on x86_64-linux (full log) Attempted: pam_mount Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: pam_mount Partial log (click to expand)
|
Cc @samueldr |
Any difference in behaviour between Additionally, most mounting-related tasks are applied live with |
No difference
With The problem without the option is the repeated prompts which happen all the time. |
@samueldr any thoughts on how we can move this forward? |
@samueldr - do you still have any concerns? |
nixos-rebuild test causes pam_mount to prompt for a password when running with an encrypted home: building '/nix/store/p6bflh7n5zy2dql8l45mix9qnzq65hbk-nixos-system-mildred-18.09.git.98592c5da79M.drv'... activating the configuration... setting up /etc... reenter password for pam_mount: (mount.c:68): Messages from underlying mount program: (mount.c:72): crypt_activate_by_passphrase: File exists (pam_mount.c:522): mount of /dev/mapper/vg0-lv_home_peter failed kbuildsycoca5 running... This change makes pam_mount not prompt. It still tries to remount (and fails in the process) but that message can be ignored. Fixes: NixOS#44586
I marked this as stale due to inactivity. → More info |
I marked this as stale due to inactivity. → More info |
@samueldr , the only case that "breaks" (and the reason for quotes is the fact that it really isn't) with this change is the following:
But, having your So while there is a change in how things work for one very special case, in general this makes things much nicer when using encrypted homes. Any strong objections? If not, let's get this shipped. |
Sorry, never had strong objections, only concerns since I didn't "get" everything, as I'm not using Do not block on these. Anyway:
Feel free to take ownership I guess! |
Motivation for this change
nixos-rebuild test causes pam_mount to prompt for a password when running with
an encrypted home:
This change makes pam_mount not prompt. It still tries to remount (and fails in
the process) but that message can be ignored.
Fixes: #44586
Reference: https://unix.stackexchange.com/a/273894
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)