From da45cf4f5a4998938d4f7b77371fb50708ab8525 Mon Sep 17 00:00:00 2001 From: quackerd Date: Fri, 19 Feb 2021 18:31:05 -0500 Subject: [PATCH] change example --- add-user-group.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/add-user-group.py b/add-user-group.py index c3fadb4..aed3b7b 100644 --- a/add-user-group.py +++ b/add-user-group.py @@ -35,7 +35,7 @@ def main(): subprocess.check_call(shlex.join(["addgroup", elements[0], elements[3]]), shell=True) print("Added user " + elements[0] + " to group " + elements[3]) # set passwd - subprocess.check_call(shlex.join(["echo", "-ne", "\"" + elements[2] + "\n" + elements[2] + "\n\""]) + " | " + shlex.join(["smbpasswd", "-a", "-U", elements[0]])), shell=True) + subprocess.check_call(shlex.join(["echo", "-ne", "\"" + elements[2] + "\n" + elements[2] + "\n\""]) + " | " + shlex.join(["smbpasswd", "-a", "-U", elements[0]]), shell=True) print("Set user " + elements[0] + " password to " + elements[2]) main() \ No newline at end of file