Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

user-name (Event Policy)

Syntax

Hierarchy Level

Description

Associate a user with an action in an event policy. The event policy action is executed under the privileges of the associated user.

Note:

When you configure the user-name statement for event scripts, it only applies to SLAX and XSLT scripts. This statement has no effect when configured for Python event scripts.

To execute a local Python event script under the access privileges of a specific user, configure the python-script-user username statement at the [edit event-options event-script file filename] hierarchy level. If you do not configure the python-script-user statement for a Python event script, Junos OS executes the script using the access privileges of the generic, unprivileged system account nobody.

Default

If you do not associate a user with an action, the action is executed as user root.

Options

username

Username that is configured at the [edit system login] hierarchy level.

Required Privilege Level

maintenance—To view or add this statement in the configuration.

Release Information

Statement introduced in Junos OS Release 8.4.

Support at the [edit event-options policy policy-name then change-configuration] hierarchy level introduced in Junos OS Release 12.1.