Added task for change password
This commit is contained in:
parent
04ddeb761e
commit
f08b057cd1
2 changed files with 74 additions and 0 deletions
21
scripts/system/change_user_password.py
Normal file
21
scripts/system/change_user_password.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/python3 -u
|
||||
|
||||
import sys
|
||||
import argparse
|
||||
import os
|
||||
from pastafariutils.unix import add_user, del_user, change_password
|
||||
from pathlib import Path
|
||||
from subprocess import call, DEVNULL
|
||||
import json
|
||||
import time
|
||||
import shutil
|
||||
import pwd
|
||||
import distro
|
||||
import subprocess
|
||||
|
||||
parser=argparse.ArgumentParser(prog='change_password_user.py', description='A tool for change passwords')
|
||||
|
||||
parser.add_argument('--password', help='The password of the unix user', required=True)
|
||||
|
||||
args=parser.parse_args()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue