You are not logged in.

#1 2015-03-10 14:22:27

Airblader
Member
From: Munich, Germany
Registered: 2015-02-02
Posts: 19

dm+crypt + pam = shadow.service fails

Hi,

my system has four partitions (boot, swap, root, home) of which swap and home are encrypted. home is decrypted during login via pam. When I boot, the systemd service "shadow" fails:

┏━[ ingo@buerk ]━[ ~ ]
┗━[ sudo systemctl status shadow
● shadow.service - Verify integrity of password and group files
   Loaded: loaded (/usr/lib/systemd/system/shadow.service; static; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2015-03-10 16:06:47 CET; 59min left
  Process: 504 ExecStart=/usr/bin/pwck -r (code=exited, status=2)
Main PID: 504 (code=exited, status=2)

Mar 10 16:06:47 buerk pwck[504]: user 'ingo': directory '/home/ingo' does not exist
Mar 10 16:06:47 buerk pwck[504]: pwck: no changes
Mar 10 16:06:47 buerk systemd[1]: shadow.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Mar 10 16:06:47 buerk systemd[1]: Failed to start Verify integrity of password and group files.
Mar 10 16:06:47 buerk systemd[1]: Unit shadow.service entered failed state.
Mar 10 16:06:47 buerk systemd[1]: shadow.service failed.

Quite obviously, /home/ingo will not exist because /home is only decrypted after this runs. How can I fix this?

Offline

#2 2015-03-11 08:31:56

Airblader
Member
From: Munich, Germany
Registered: 2015-02-02
Posts: 19

Re: dm+crypt + pam = shadow.service fails

Ok, never mind. I figured out what exactly shadow does and decided to just leave it. It won't hurt if it fails upon boot and it's time so it'll still run correctly if my machine is powered on and mounted at the time.

Offline

Board footer

Powered by FluxBB