Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
lehrkraefte:blc:plg:encryptedhome [2023/02/08 17:01] Ivo Blöchliger created |
lehrkraefte:blc:plg:encryptedhome [2023/06/30 08:58] Ivo Blöchliger |
||
---|---|---|---|
Line 2: | Line 2: | ||
Ausgangslage: | Ausgangslage: | ||
<code bash> | <code bash> | ||
+ | apt install libpam-mount | ||
cryptsetup -y -v luksFormat /dev/xvdc | cryptsetup -y -v luksFormat /dev/xvdc | ||
cryptsetup luksOpen /dev/xvdc myhome | cryptsetup luksOpen /dev/xvdc myhome | ||
mkfs.ext4 / | mkfs.ext4 / | ||
- | mount / | + | mount / |
+ | # Copy already existing user data | ||
+ | cp -varu /home/user/. /mnt/. | ||
+ | umount /mnt | ||
+ | cryptsetup luksClose myhome | ||
+ | </ | ||
+ | In / | ||
+ | <code txt> | ||
+ | <volume user=" | ||
</ | </ |