You are not logged in.

#1 2014-08-09 21:19:26

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Shadow.service fails in combination with encrypted home partition.

Hey,

Recently I have done a fresh installation and chose to encrypt my home partition with dm-crypt. I unencrypt it at login via pam_mount, which makes my home directory unavailable during system boot. This is causing the shadow.service to fail:

┌─jente @ ~ 23:12:39 
└─╼ systemctl status -l shadow
● shadow.service - Verify integrity of password and group files
   Loaded: loaded (/usr/lib/systemd/system/shadow.service; static)
   Active: failed (Result: exit-code) since za 2014-08-09 21:38:13 CEST; 1h 34min ago
  Process: 194 ExecStart=/usr/bin/pwck -r (code=exited, status=2)
 Main PID: 194 (code=exited, status=2)

aug 09 21:38:20 edge pwck[194]: user 'jente': directory '/home/jente' does not exist
aug 09 21:38:20 edge pwck[194]: pwck: no changes

I have looked around a bit on the web, but haven't come across anything similar. Can I fix this?


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#2 2014-08-10 00:44:37

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,134

Re: Shadow.service fails in combination with encrypted home partition.

Don't you have a directory there which you then use as a mount point? Then the directory would exist even though nothing was mounted. (I doubt the check looks at the contents - as far as I can tell from the manual page, it just checks the directory exists.) For example, /home exists on my root partition but as an empty directory. Only when the relevant stuff is mounted does /home actually contain anything.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2014-08-10 07:49:35

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: Shadow.service fails in combination with encrypted home partition.

I encrypted /home in itself instead of just /home/jente.

I suppose I can just change the mountpoints and create /home myself to solve this then? It's simple, I hadn't thought of it yet tongue


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#4 2015-01-08 09:18:52

pgrond
Member
Registered: 2011-06-27
Posts: 10

Re: Shadow.service fails in combination with encrypted home partition.

I have the same problem but I don't quite get how you changed the mount points. Sorry to sound dumb, but could you point me in the right direction?

Offline

Board footer

Powered by FluxBB