Fixes in change_password for users, disabled password change
This commit is contained in:
parent
8e693ae7b6
commit
e4410d0421
3 changed files with 25 additions and 2 deletions
|
|
@ -3,7 +3,7 @@
|
|||
import sys
|
||||
import argparse
|
||||
import os
|
||||
from pastafariutils.unix import add_user, del_user, change_password
|
||||
#from pastafariutils.unix import add_user, del_user, change_password
|
||||
from pathlib import Path
|
||||
from subprocess import call, DEVNULL
|
||||
import json
|
||||
|
|
@ -23,6 +23,7 @@ parser.add_argument('--ssh_pub_key_file', help='The ssh pub key of the unix user
|
|||
|
||||
args=parser.parse_args()
|
||||
|
||||
"""
|
||||
if args.password:
|
||||
|
||||
password_user=args.password
|
||||
|
|
@ -35,7 +36,7 @@ if args.password:
|
|||
else:
|
||||
|
||||
print('Changed password succesfully...\n')
|
||||
|
||||
"""
|
||||
|
||||
if args.ssh_pub_key_file:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue