python-script-user (Event and SNMP Scripts)
Syntax
python-script-user username;
Hierarchy Level
[edit event-options event-script file filename], [edit system scripts snmp file filename]
Description
Define the user under whose access privileges the local Python event script or Python SNMP script
executes. If you do not associate a user with the script, then by default, Junos OS
executes the script with the privileges of the *nix user and group
nobody, which is the generic, unprivileged system account.
You cannot configure Python event scripts or Python SNMP scripts to execute with root access privileges.
Junos OS and Junos OS Evolved execute Python commit scripts and Python op scripts under the access privileges of the user who executes the command or operation that invokes the script.
Default
If you do not configure the python-script-user statement for a given Python
script, the system executes the script under the access privileges of the *nix user
and group nobody.
Options
| username | Username that is configured at the |
Required Privilege Level
maintenance—To view or add this statement in the configuration.
Release Information
Statement introduced in Junos OS Release 16.1R3.