[virt-bootstrap] [PATCH v2 08/14] Simplify setting permissins of shadow file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 src/virtBootstrap/utils.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/virtBootstrap/utils.py b/src/virtBootstrap/utils.py
index c69b5da..36341cd 100644
--- a/src/virtBootstrap/utils.py
+++ b/src/virtBootstrap/utils.py
@@ -416,8 +416,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, 0666)
     try:
         with open(shadow_file) as orig_file:
             shadow_content = orig_file.read().split('\n')
-- 
2.13.3

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux