def set_password(self, rootdir, user, password):
encrypted = crypt.crypt(password, '..')
self.runcmd(['chroot', rootdir, 'usermod', '-p', encrypted, user])
def set_password(self, rootdir, user, password):
encrypted = crypt.crypt(password, '..')
self.runcmd(['chroot', rootdir, 'usermod', '-p', encrypted, user])