You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
scriptform/examples/run_as
Ferry Boender 03f655b6e6 If Scriptform is running as root, drop privileges to 'nobody' by default. Otherwise, don't drop privileges before executing scripts. 10 years ago
..
README.md If Scriptform is running as root, drop privileges to 'nobody' by default. Otherwise, don't drop privileges before executing scripts. 10 years ago
job_run_as.py If Scriptform is running as root, drop privileges to 'nobody' by default. Otherwise, don't drop privileges before executing scripts. 10 years ago
run_as.json If Scriptform is running as root, drop privileges to 'nobody' by default. Otherwise, don't drop privileges before executing scripts. 10 years ago

README.md

ScriptForm test example

This test example shows the usage of the run_as functionality. If we specify a run_as field in a form like so:

"forms": [
    {
        "name": "run_as",
        "title": "Run as...",
        "description": "",
        "submit_title": "Run",
        "run_as": "man",
        "script": "job_run_as.py",
        "fields": []
    }
]

Scriptform will try to run the script as that user (in this case: man). This requires Scriptform to be running as root.

If no run_as is given in a script, Scriptform will execute scripts as the current user (the one running Scriptform). If, however, Scriptform is being run as root and you don't specify a run_as user, the scripts will run as user nobody for security considerations!