summaryrefslogtreecommitdiffstats
path: root/debian/passwd.tmpfile
diff options
context:
space:
mode:
Diffstat (limited to 'debian/passwd.tmpfile')
-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 0000000..c2075d1
--- /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