Skip to content
Snippets Groups Projects
Commit 7b626c6b authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Remove backup file for shadow

In Linux when clearing out the account, remove the backup file:
/etc/shadow-
parent fb136c1c
No related branches found
No related tags found
No related merge requests found
......@@ -116,6 +116,9 @@ class Linux(Unix):
self.image.g.write('/etc/shadow', "\n".join(shadow) + '\n')
# Remove backup file for /etc/shadow
self.image.g.rm_rf('/etc/shadow-')
@sysprep('Fixing acpid powerdown action')
def fix_acpid(self):
"""Replace acpid powerdown action scripts to immediately shutdown the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment