diff options
author | Ben Howard <ben.howard@ubuntu.com> | 2014-01-08 14:11:13 -0700 |
---|---|---|
committer | usd-importer <ubuntu-server@lists.ubuntu.com> | 2014-01-08 21:33:22 +0000 |
commit | 2ab4edcacb1e5aa029c75c5d99fd03497c56db77 (patch) | |
tree | 5263fe52e5d27bf66bc9a555a4687f05f8a2e04a | |
parent | 5a758facf907eba1f41bdeee97f84a3a6c6eb84c (diff) | |
download | vyos-walinuxagent-2ab4edcacb1e5aa029c75c5d99fd03497c56db77.tar.gz vyos-walinuxagent-2ab4edcacb1e5aa029c75c5d99fd03497c56db77.zip |
Use the proper permissions on /etc/shadow (LP: #1188820).
Gbp-Pq: shadow_permissions.patch.
-rw-r--r-- | waagent | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2423,7 +2423,7 @@ def DeleteRootPassword(): ReplaceFileContentsAtomic(filepath, "root:*LOCK*:14600::::::\n" + "\n".join(filter(lambda a: not a.startswith("root:"), GetFileContents(filepath).split('\n')))) - os.chmod(filepath, 0000) + os.chmod(filepath, 0640) if IsRedHat(): Run("chcon system_u:object_r:shadow_t:s0 " + filepath) Log("Root password deleted.") |