Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Utils/distroutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ def __init__(self, config):


# noinspection PyMethodOverriding
def chpasswd(self, user, password):
return ext_utils.run_send_stdin(['pw', 'usermod', 'user', '-h', '0'], password, log_cmd=False)
def change_password(self, user, password):
return ext_utils.run_send_stdin(['pw', 'usermod', user, '-h', '0'], password.encode('utf-8'), log_cmd=False)

def create_account(self, user, password, expiration, thumbprint, enable_nopasswd):
"""
Expand All @@ -315,7 +315,7 @@ def create_account(self, user, password, expiration, thumbprint, enable_nopasswd
uidmin = int(ext_utils.get_line_starting_with("UID_MIN", "/etc/login.defs").split()[1])
except (ValueError, KeyError, AttributeError, EnvironmentError):
pass
pass

if uidmin is None:
uidmin = 100
if userentry is not None and userentry[2] < uidmin:
Expand Down
2 changes: 1 addition & 1 deletion VMAccess/manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<ExtensionImage xmlns="http://schemas.microsoft.com/windowsazure">
<ProviderNameSpace>Microsoft.OSTCExtensions</ProviderNameSpace>
<Type>VMAccessForLinux</Type>
<Version>1.5.20</Version>
<Version>1.5.21</Version>
<Label>Microsoft Azure VM Access Extension for Linux Virtual Machines</Label>
<HostingResources>VmRole</HostingResources>
<MediaLink></MediaLink>
Expand Down