From 3588f5d2a3a6d6885c04c0fd7910e50a29edc68c Mon Sep 17 00:00:00 2001 From: Balint Reczey Date: Fri, 20 Jan 2017 20:11:49 +0100 Subject: [PATCH] Clean up stale locks on boot Closes: #478771 --- debian/passwd.tmpfile | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 debian/passwd.tmpfile diff --git a/debian/passwd.tmpfile b/debian/passwd.tmpfile new file mode 100644 index 00000000..c2075d11 --- /dev/null +++ b/debian/passwd.tmpfile @@ -0,0 +1,8 @@ +# If a password operation is in progress and we lose power, stale lockfiles +# can be left behind. Clear them on boot. +r! /etc/gshadow.lock +r! /etc/shadow.lock +r! /etc/passwd.lock +r! /etc/group.lock +r! /etc/subuid.lock +r! /etc/subgid.lock