# Decrypt LUKS encrypted /home directory at login

**URL:** <https://forums.rockylinux.org/t/decrypt-luks-encrypted-home-directory-at-login/9223>\
**Category:** Rocky Linux Help & Support\
**Created:** [March 16, 2023, 3:02am UTC](https://forums.rockylinux.org/t/decrypt-luks-encrypted-home-directory-at-login/9223 "2023-03-16T03:02:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mitch\_murder](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/mitch_murder/32/1403_2.png) [@mitch\_murder](https://forums.rockylinux.org/u/mitch_murder)\
**Post date:** [March 16, 2023, 3:02am UTC](https://forums.rockylinux.org/t/decrypt-luks-encrypted-home-directory-at-login/9223/1 "2023-03-16T03:02:40Z")

</div>

I am running Rocky Linux 9.1, with a LUKS encrypted `/home` directory. During boot, I am prompeted for my LUKS key to mount the encrypted logical volume (LV) as `/home` and then prompted to login as my user. I am looking for a way to bypass the prompt at boot and have the LUKS LV mounted when I login (assuming my login and LUKS passwords are the same). I have found tutorials for how to do this on Arch Linux and Fedora ([https://www.reddit.com/r/Fedora/comments/x3yf3q/autodecrypt\_home\_drive\_during\_userlogin/](https://www.reddit.com/r/Fedora/comments/x3yf3q/autodecrypt_home_drive_during_userlogin/)), I have found this page ([PAM authentication modules - Documentation](https://docs.rockylinux.org/guides/security/pam/#pam_mount)) but it doesn’t describe how to do what I want, and so far as I can tell, there is no `pam_mount` package in `dnf` (I have EPEL enabled). Does anyone know of an “official” Rocky Linux tutorial on how to do this or can provide instructions?

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 3:21am UTC](https://forums.rockylinux.org/t/decrypt-luks-encrypted-home-directory-at-login/9223/2 "2023-08-25T03:21:39Z")

</div>


