diff options
author | Radostin Stoyanov <rstoyanov1@gmail.com> | 2017-08-26 21:42:02 +0100 |
---|---|---|
committer | Radostin Stoyanov <rstoyanov1@gmail.com> | 2017-08-28 16:02:13 +0100 |
commit | dba42986a04d5b5a9d4926d65479744812c00f3f (patch) | |
tree | 096fe37a723227ca9b54beb46f28c2491b25a836 /src/virtBootstrap | |
parent | 9302266b220db454bdf517cbc59727d9fd482915 (diff) | |
download | virt-bootstrap.git-dba42986a04d5b5a9d4926d65479744812c00f3f.tar.gz virt-bootstrap.git-dba42986a04d5b5a9d4926d65479744812c00f3f.tar.xz virt-bootstrap.git-dba42986a04d5b5a9d4926d65479744812c00f3f.zip |
Simplify setting permissions of shadow file
Diffstat (limited to 'src/virtBootstrap')
-rw-r--r-- | src/virtBootstrap/utils.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/virtBootstrap/utils.py b/src/virtBootstrap/utils.py index ea650fb..be9133c 100644 --- a/src/virtBootstrap/utils.py +++ b/src/virtBootstrap/utils.py @@ -387,8 +387,7 @@ def set_root_password_in_rootfs(rootfs, password): shadow_file_permissions = os.stat(shadow_file)[0] # Set read-write permissions to shadow file - # 438 = 0110110110 = -rw-rw-rw- - os.chmod(shadow_file, 438) + os.chmod(shadow_file, 0o666) try: with open(shadow_file) as orig_file: shadow_content = orig_file.read().split('\n') |