This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Custom Configurations for atom powered by sync-settings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import csv, sys,os | |
try: | |
file = open(sys.argv[1], "rt") | |
reader = csv.DictReader(file) | |
# Function que adiciona os usuairos no samba e define para mudar a senha no proximo login | |
def add_user(username,senha,email,sobrenome,nome,descr,departamento,empresa,user_ou): | |
os.system("/usr/bin/samba-tool user add %s \ |
NewerOlder