adds privilege escalation method for pmrun(Unix Privilege Manager 6.0)

This commit is contained in:
Kevin Clark 2017-05-19 14:24:54 -07:00 committed by Brian Coca
commit 04073dfa9b
4 changed files with 14 additions and 6 deletions

View file

@ -119,7 +119,7 @@ def check_command(commandline):
'mount': 'mount', 'rpm': 'yum, dnf or zypper', 'yum': 'yum', 'apt-get': 'apt',
'tar': 'unarchive', 'unzip': 'unarchive', 'sed': 'template or lineinfile',
'dnf': 'dnf', 'zypper': 'zypper' }
become = [ 'sudo', 'su', 'pbrun', 'pfexec', 'runas' ]
become = [ 'sudo', 'su', 'pbrun', 'pfexec', 'runas', 'pmrun' ]
warnings = list()
command = os.path.basename(commandline.split()[0])
if command in arguments:

View file

@ -125,7 +125,7 @@ options:
description:
- Become method to Use for privledge escalation.
required: False
choices: ["None", "sudo", "su", "pbrun", "pfexec"]
choices: ["None", "sudo", "su", "pbrun", "pfexec", "pmrun"]
default: "None"
become_username:
description: