-
Notifications
You must be signed in to change notification settings - Fork 98
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 configuration on Fedora #295
Comments
Small additition: I found out that pam_fscrypt.so should be installed to /usr/lib64/security instead of of /usr/lib/security as all other similar modules are there. Do developer test the software on Fedora at all? |
I haven't tested PAM configuration differs between distributions, so issues like this are expected to some extent. If you can put together a working configuration on Fedora, we'd be glad to add it to the documentation. You can also request that your distro packages |
Hello, First thing first, thanks for the wonderful project ! I am currently using it to encrypt virtual machines images at rest, and it is working great ! Alas, as OP, PAM configuration seems to be a bit tricky on Fedora. I am also trying to make auto unlock work on Fedora 34, and intend to eventually request a port or port it to Fedora myself. My test configuration
What works
What doesn't (yet)
Fedora specifics
According to this forum tread,
Content of
According to the logs bellow, it seems that fscrypt AUTHTOK cannot access the unix password.
The problem seems to be how can we apply Any idea how it could be solved ? |
|
Hi, Looking at the Ubuntu configs, I found out that the session file looks like this: |
The |
OK, thanks, you saved me a hassle of installing Fedora to check just that. |
Hi @luzeal, Did you try to run authselect or authconfig (https://fedoraproject.org/wiki/Changes/Authselect) to update PAM configuration? |
Good news, I have been able to find a good PAM configuration for Fedora (and perhaps by extension other related distributions) ! @yerlaser : thanks for your suggestion, I dove into
Incomplete walk-through**
**A more complete walk-through will follow when I am back from holidays next week. Clearly, |
@luzeal , Man, you're a hero! |
Took me a while to figure this out, but I think the easiest way to use fscrypt'ed home directories in Fedora today is using systemd-homed:
That's it. Note that if no user with uid 1000 exists, gdm will load the initial setup screen on next boot You can disable this in /etc/gdm/custom.conf
|
You can use |
This is perhaps more a question although maybe it's better that the documentation be updated.
I am trying to use fscrypt on Fedora and since there are no packages available I compiled it from sources.
I managed to make it work with pass phrase protector, but login protector doesn't work.
Documentation says to add pam_fscrypt.so lines to /etc/pam.d/common-auth and /etc/pam.d/common-session
Both files don't exist, here's the listing of /etc/pam.d
config-util gdm-password password-auth smartcard-auth system-auth
cups gdm-pin polkit-1 sshd systemd-user
fingerprint-auth gdm-smartcard postlogin sssd-shadowutils vlock
fscrypt liveinst ppp su vmtoolsd
gdm-autologin login remote sudo xserver
gdm-fingerprint other runuser sudo-i
gdm-launch-environment passwd runuser-l su-l
I already tried to add the lines to gdm-password, login, passwd, password-auth, system-auth but none of them worked. Also, I don't see any errors in the logs. It's as if the lines get ignored.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: