aif-ng/aif/system/users.py

26 lines
524 B
Python
Raw Normal View History

# There isn't a python package that can manage *NIX users (well), unfortunately.
# So we do something stupid:
# https://www.tldp.org/LDP/sag/html/adduser.html
# https://unix.stackexchange.com/a/153227/284004
# https://wiki.archlinux.org/index.php/users_and_groups#File_list
import os
##
2019-12-04 01:48:41 -05:00
import passlib # validate password hash/gen hash
class Password(object):
def __init__(self):
pass
class RootUser(object):
def __init__(self):
pass
class User(object):
def __init__(self):
pass