Difference between revisions of "Pam mount"

From ArchWiki
Jump to: navigation, search
m (General Setup: linkfix)
Line 1: Line 1:
 +
[[Category:Security (English)]]
 
To have an encrypted home partition mounted automatically when logging in, you can use pam_mount. It will mount your /home (or whatever mount point you like) when you log in using your login manager or when logging in on console. The encrypted drive's passphrase should be the same as your linux user's password, so you don't have to type in two different passphrases to login.
 
To have an encrypted home partition mounted automatically when logging in, you can use pam_mount. It will mount your /home (or whatever mount point you like) when you log in using your login manager or when logging in on console. The encrypted drive's passphrase should be the same as your linux user's password, so you don't have to type in two different passphrases to login.
  

Revision as of 23:14, 8 September 2011

To have an encrypted home partition mounted automatically when logging in, you can use pam_mount. It will mount your /home (or whatever mount point you like) when you log in using your login manager or when logging in on console. The encrypted drive's passphrase should be the same as your linux user's password, so you don't have to type in two different passphrases to login.

General Setup

  1. Install Template:Package AUR from the AUR
  2. Edit /etc/security/pam_mount.conf.xml as follows:

Insert 2 new lines at the end of the file, but before the last closing tag, </pam_mount>. Replace

  • USERNAME with your linux-username
  • sdaX with the corresponding device.

Add mount options, if needed.

Template:File

Login Manager Configuration

In general, you have to edit the corresponding file in /etc/pam.d . After adding some lines, pam_mount will be called on login. The correct order of entries in each file is important.

Slim

Template:File