-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
Login and sudo failures possibly due to pam_ccreds issue #95017
Comments
I never used
|
I have the same problem: although my
What I see in the logs is this:
I do not remember whether this has been an issue since I started to use Kerberos (almost a year ago), or later after some nixos update. I suppose it could be the latter. |
Some further observations. I disabled the built-in
With |
For now I'm settling with just removing all Given that, in my nixpkgs fork I've added a let
# https://github.com/NixOS/nixpkgs/issues/95017
krbPamFix = (builtins.fetchTarball {
url =
"https://github.com/austinbutler/nixpkgs/archive/35b5964d4f87d487a757400c4648e670a4000d36.tar.gz";
sha256 = "0yb4vdyjlp4q0qahma793f7a8wx4hvryb52qb42q24b0f94kq9zh";
});
in {
disabledModules = [ "config/krb5/default.nix" "security/pam.nix" ];
imports = [
./hardware-configuration.nix
<home-manager/nixos>
"${krbPamFix}/nixos/modules/security/pam.nix"
"${krbPamFix}/nixos/modules/config/krb5/default.nix"
];
krb5.enable = true;
krb5.pamIntegration = false;
# Rest of config...
} With
With
This doesn't address the apparent |
Interestingly during my experimenting today it apparently did create |
I marked this as stale due to inactivity. → More info |
Still an issue for me today. |
This seems to be resolved by #184553 (set |
Describe the bug
I get random failures when trying to log in or use sudo:
sudo: PAM authentication error: Error in service module
. It seems to happen most often on first login or first sudo use. Usually after 2-3 tries it succeeds. Sometimes during login it works first try.To Reproduce
sudo: PAM authentication error: Error in service module
Expected behavior
Login and sudo always work when you provide the correct password.
Additional context
In the journal I see this:
I do have an NFS mount that uses krb5 for authentication, and I've added "Enterprise Login (Kerberos)" in Gnome Online Accounts. The NFS mount is set to only mount on access (
x-systemd.automount
) because the computer that is the kdc is not always online. To be clear, I log in to the system with a normal local account, Kerberos is just for the NFS mount.My NFS mount from
configuration.nix
:This is my Kerberos config from
configuration.nix
:What stands out to me from the log is
pam_ccreds: failed to open cached credentials "/var/cache/.security.db": No such file or directory
.pam_ccreds
is installed, but that file does not exist.Notify maintainers
The pam module doesn't seem to have a maintainers list, so based on commit history pinging @Mic92 @infinisil @flokli.
Metadata
Maintainer information:
The text was updated successfully, but these errors were encountered: