Displaying 2 results from an estimated 2 matches for "set_root_password".
2010 Oct 27
0
[PATCH node] add password.py
...len = 2
+ algo = 'sha512'
+ saltlen = 16
+ saltstr = '$6$'
+ for i in range(saltlen):
+ saltstr = saltstr + random.choice (string.letters +
+ string.digits + './')
+ return crypt.crypt (password, saltstr)
+
+def set_root_password(password):
+ user = self.__admin.initUser(root)
+ passwd = cryptPassword()
+ unmount_config("/etc/shadow")
+ user.set(passwd, password)
+ ovirt_store_config("/etc/shadow")
+
+def check_ssh_password_auth(self):
+ password_auth_status = augeas.Augeas("root=/...
2014 Mar 18
2
[PATCH] customize: Move virt-customize-related code to a separate
There's not going to be an easy way to present this patch. It's huge
and interconnected.
Anyway, what it does is lay the groundwork for a new tool which I'm
calling 'virt-customize'. virt-customize is virt-builder, but without
the part where it downloads a template from a respository. Just the
part where it customizes the template, that is, installing packages,
editing