diff options
author | Ben Howard <ben.howard@ubuntu.com> | 2013-09-26 08:21:35 -0600 |
---|---|---|
committer | usd-importer <ubuntu-server@lists.ubuntu.com> | 2013-09-30 19:23:28 +0000 |
commit | 07822677ea9d15508887d2a52fcb5d4f5edd312e (patch) | |
tree | 960ce3b0371f2b1e2dd0be15efd709bd7b37be05 | |
parent | 8ae1cdb8333c87208331bfbe9afc76c41f8062b4 (diff) | |
download | vyos-walinuxagent-07822677ea9d15508887d2a52fcb5d4f5edd312e.tar.gz vyos-walinuxagent-07822677ea9d15508887d2a52fcb5d4f5edd312e.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.") |