summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBalint Reczey <balint@balintreczey.hu>2017-01-20 20:11:49 +0100
committerBalint Reczey <balint@balintreczey.hu>2017-01-20 20:11:49 +0100
commit3588f5d2a3a6d6885c04c0fd7910e50a29edc68c (patch)
tree73ac5ffaca79a3062afd9696cb68b8204df32c3f
parentaf6b4171563cf4fc64883eb39dd81c8f68296e5d (diff)
downloadshadow-3588f5d2a3a6d6885c04c0fd7910e50a29edc68c.tar.gz
Clean up stale locks on boot
Closes: #478771
-rw-r--r--debian/passwd.tmpfile8
1 files changed, 8 insertions, 0 deletions
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